<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CW 10.6 warning related to duplicated variable in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374074#M2076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're using MCU V10.6.&lt;/P&gt;&lt;P&gt;I don't think there is a problem with the compiler option or not.&lt;/P&gt;&lt;P&gt;In all case the duplicated variable is checked at link phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Eclipse, by default the "Problems" component is displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this component is not providing lot of information regarding the problem.&lt;/P&gt;&lt;P&gt;When there is an error (in Problems Component) when you build a project, to have more details, I recommend to switch to the Console component.&lt;/P&gt;&lt;P&gt;The console component will capture all exchange messages sent to (command line tool) and generated (information, warning and error) by tools (Assembler, compiler, linker etc ...).&lt;/P&gt;&lt;P&gt;In this dialog you will have exactly the error reported by the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44785i264D5A23CFC76DE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 14:07:09 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2014-11-03T14:07:09Z</dc:date>
    <item>
      <title>CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374073#M2075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, after long time I discovered that the error: &lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;mingw32-make: *** [KL15_397200_OUTDOOR_SIREN_rev2_dual.elf] Error 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;was because of I had the same variable definition in two different .c file.&lt;/P&gt;&lt;P&gt;but no warning hint me the reason.&lt;/P&gt;&lt;P&gt;I wander if there is the possibility to set the compiler to warn me when I define the same variable twice.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374073#M2075</guid>
      <dc:creator>stefanomanca</dc:creator>
      <dc:date>2014-11-03T11:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374074#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're using MCU V10.6.&lt;/P&gt;&lt;P&gt;I don't think there is a problem with the compiler option or not.&lt;/P&gt;&lt;P&gt;In all case the duplicated variable is checked at link phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Eclipse, by default the "Problems" component is displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this component is not providing lot of information regarding the problem.&lt;/P&gt;&lt;P&gt;When there is an error (in Problems Component) when you build a project, to have more details, I recommend to switch to the Console component.&lt;/P&gt;&lt;P&gt;The console component will capture all exchange messages sent to (command line tool) and generated (information, warning and error) by tools (Assembler, compiler, linker etc ...).&lt;/P&gt;&lt;P&gt;In this dialog you will have exactly the error reported by the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44785i264D5A23CFC76DE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374074#M2076</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-11-03T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374075#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal, console window show me only the point where the compiler stops but no indication about what is the error. It's strange because in general compiler warn me if there is a duplicated #define.&lt;/P&gt;&lt;P&gt;Anyway thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:33:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374075#M2077</guid>
      <dc:creator>stefanomanca</dc:creator>
      <dc:date>2014-11-03T14:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374076#M2078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is architecture dependent.&lt;/P&gt;&lt;P&gt;I've created an example with the wizard for KL15 and define the test_val in main.c file and duplicated in test.h file with different value.&lt;/P&gt;&lt;P&gt;The compiler detects the problem.&lt;/P&gt;&lt;P&gt;Attached the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374076#M2078</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-11-03T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374077#M2079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal, I'm using CW 10.6&amp;nbsp; and I confirm the compiler detects duplicated #define but I referred to duplicated global variables in two different .c file. The compiler is not able to highlight the cause. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374077#M2079</guid>
      <dc:creator>stefanomanca</dc:creator>
      <dc:date>2014-11-03T15:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374078#M2080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created another example using test_val global variable in 2 .c files.&lt;/P&gt;&lt;P&gt;When I build the project I got a linker error:&lt;/P&gt;&lt;P&gt;'Invoking: ARM Ltd Windows GCC C Linker'&lt;/P&gt;&lt;P&gt;"F:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"&amp;nbsp;&amp;nbsp;&amp;nbsp; @"test_kinetis.args" -o"test_kinetis.elf"&lt;/P&gt;&lt;P&gt;./Sources/main.o:(.data.test_val+0x0): multiple definition of `test_val'&lt;/P&gt;&lt;P&gt;./Sources/test.o:(.data.test_val+0x0): first defined here&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;mingw32-make: *** [test_kinetis.elf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the new project.&lt;/P&gt;&lt;P&gt;If I'm missing something, can you please provide me a sample example showing the behavior ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374078#M2080</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-11-03T16:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374079#M2081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Pascal, in your project all work but in mine no. I send you my project as you can see file radio_cw.c and radio.c have the same variable const uint8_t Radio_Configuration_Data_Array_433[] = RADIO_CONFIGURATION_DATA_ARRAY_433;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only I get:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**** Build of configuration FLASH for project KL15_397200_OUTDOOR_SIREN_rev2_dual_trans2 ****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j16 all&lt;/P&gt;&lt;P&gt;'Building file: ../codice/radio.c'&lt;/P&gt;&lt;P&gt;'Executing target #5 ../codice/radio.c'&lt;/P&gt;&lt;P&gt;'Invoking: ARM Ltd Windows GCC C Compiler'&lt;/P&gt;&lt;P&gt;"C:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../codice/radio.c" @"codice/radio.args" -MMD -MP -MF"codice/radio.d" -o"codice/radio.o"&lt;/P&gt;&lt;P&gt;'Finished building: ../codice/radio.c'&lt;/P&gt;&lt;P&gt;' '&lt;/P&gt;&lt;P&gt;'Building target: KL15_397200_OUTDOOR_SIREN_rev2_dual.elf'&lt;/P&gt;&lt;P&gt;'Executing target #26 KL15_397200_OUTDOOR_SIREN_rev2_dual.elf'&lt;/P&gt;&lt;P&gt;'Invoking: ARM Ltd Windows GCC C Linker'&lt;/P&gt;&lt;P&gt;"C:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"&amp;nbsp;&amp;nbsp;&amp;nbsp; @"KL15_397200_OUTDOOR_SIREN_rev2_dual.args" -o"KL15_397200_OUTDOOR_SIREN_rev2_dual.elf"&lt;/P&gt;&lt;P&gt;../codice/radio.c: In function 'bRadio_Check_Tx_RX':&lt;/P&gt;&lt;P&gt;../codice/radio.c:92:17: warning: unused variable 'shexx2' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../codice/radio.c: In function 'miaStartTx':&lt;/P&gt;&lt;P&gt;../codice/radio.c:187:43: warning: unused parameter 'pioRadioPacket' [-Wunused-parameter]&lt;/P&gt;&lt;P&gt;mingw32-make: *** [KL15_397200_OUTDOOR_SIREN_rev2_dual.elf] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374079#M2081</guid>
      <dc:creator>stefanomanca</dc:creator>
      <dc:date>2014-11-04T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374080#M2082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;With your project I've reproduced the problem.&lt;/P&gt;&lt;P&gt;No error regarding the duplicated variable is generated whereas this is the cause of the generic error.&lt;/P&gt;&lt;P&gt;If I removed the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const uint8_t Radio_Configuration_Data_Array_433[] = RADIO_CONFIGURATION_DATA_ARRAY_433;&lt;/P&gt;&lt;P&gt;in the radio.c file, the elf file is generated without problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will investigate the problem and will keep you informed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: if you want you can remove the project above ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374080#M2082</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-11-04T09:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374081#M2083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact the error message is reproduced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Build or build after clean operation I got in Console:&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++&lt;/P&gt;&lt;P&gt;'Building target: KL15_397200_OUTDOOR_SIREN_rev2_dual.elf'&lt;/P&gt;&lt;P&gt;'Executing target #26 KL15_397200_OUTDOOR_SIREN_rev2_dual.elf'&lt;/P&gt;&lt;P&gt;'Invoking: ARM Ltd Windows GCC C Linker'&lt;/P&gt;&lt;P&gt;"F:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"&amp;nbsp;&amp;nbsp;&amp;nbsp; @"KL15_397200_OUTDOOR_SIREN_rev2_dual.args" -o"KL15_397200_OUTDOOR_SIREN_rev2_dual.elf"&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c: In function 'inizializza':&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c:94:1: warning: implicit declaration of function 'init_spi' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c:99:1: warning: implicit declaration of function 'init_Shock' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c:100:1: warning: implicit declaration of function 'init_ADC0' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c:101:1: warning: implicit declaration of function 'init_Batteria' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c:102:1: warning: implicit declaration of function 'init_LPTMR0' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/inizializzazioni.c:7:12: warning: unused variable 'i' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../codice/batteria.c: In function 'leggiBatteria':&lt;/P&gt;&lt;P&gt;../codice/batteria.c:32:2: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/batteria.c:33:2: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../codice/LPTMR0.c: In function 'LPTMR0_ISR':&lt;/P&gt;&lt;P&gt;../codice/LPTMR0.c:44:2: warning: implicit declaration of function 'gestione_sirena' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/LPTMR0.c:279:3: warning: implicit declaration of function 'gestione_sintesi_vocale' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/radio.c: In function 'bRadio_Check_Tx_RX':&lt;/P&gt;&lt;P&gt;../codice/radio.c:92:17: warning: unused variable 'shexx2' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../codice/radio.c: In function 'miaStartTx':&lt;/P&gt;&lt;P&gt;../codice/radio.c:187:43: warning: unused parameter 'pioRadioPacket' [-Wunused-parameter]&lt;/P&gt;&lt;P&gt;../codice/radio_cw.c: In function 'invia_cw':&lt;/P&gt;&lt;P&gt;../codice/radio_cw.c:22:2: warning: implicit declaration of function 'radio_init' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../codice/spi_radio.c: In function 'SpiReadWrite':&lt;/P&gt;&lt;P&gt;../codice/spi_radio.c:114:11: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]&lt;/P&gt;&lt;P&gt;../codice/sirena.c: In function 'sirenaSetVolume':&lt;/P&gt;&lt;P&gt;../codice/sirena.c:335:10: warning: unused variable 'i' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../codice/sintesi.c: In function 'gestioneSPI':&lt;/P&gt;&lt;P&gt;../codice/sintesi.c:109:12: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]&lt;/P&gt;&lt;P&gt;../codice/sintesi.c:108:11: warning: variable 'bValue' set but not used [-Wunused-but-set-variable]&lt;/P&gt;&lt;P&gt;../codice/uart0.c: In function 'riceviCar':&lt;/P&gt;&lt;P&gt;../codice/uart0.c:92:14: warning: unused variable 'len' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../codice/uart0.c: In function 'riceviNum':&lt;/P&gt;&lt;P&gt;../codice/uart0.c:128:2: warning: pointer targets in passing argument 1 of 'atol' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../codice/uart0.c: In function 'riceviNumHex':&lt;/P&gt;&lt;P&gt;../codice/uart0.c:143:2: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../codice/uart0.c: In function 'aspettaCar':&lt;/P&gt;&lt;P&gt;../codice/uart0.c:163:14: warning: unused variable 'len' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../codice/si446x_api_lib.c: In function 'si446x_set_property':&lt;/P&gt;&lt;P&gt;../codice/si446x_api_lib.c:257:29: warning: 'uint8_t' is promoted to 'int' when passed through '...' [enabled by default]&lt;/P&gt;&lt;P&gt;../Sources/main.c: In function 'main':&lt;/P&gt;&lt;P&gt;../Sources/main.c:108:3: warning: implicit declaration of function 'inizializza' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../Sources/main.c:109:3: warning: implicit declaration of function 'invia_cw' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../Sources/main.c:110:1: warning: pointer targets in passing argument 1 of 'stampa' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:379:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:380:4: warning: implicit declaration of function 'riceviNum' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../Sources/main.c:385:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:391:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:396:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:402:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:408:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:414:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:420:4: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:438:7: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]&lt;/P&gt;&lt;P&gt;../Sources/main.c:439:6: warning: pointer targets in passing argument 1 of 'stampanr' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:489:4: warning: pointer targets in passing argument 1 of 'stampa' differ in signedness [-Wpointer-sign]&lt;/P&gt;&lt;P&gt;../Sources/main.c:100:14: warning: unused variable 'volume' [-Wunused-variable]&lt;/P&gt;&lt;P&gt;../Project_Settings/Startup_Code/__arm_end.c: In function '_ExitProcess':&lt;/P&gt;&lt;P&gt;../Project_Settings/Startup_Code/__arm_end.c:69:30: warning: unused parameter 'status' [-Wunused-parameter]&lt;/P&gt;&lt;P&gt;mingw32-make: *** [KL15_397200_OUTDOOR_SIREN_rev2_dual.elf] Error 1&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the error is generated without all information.&lt;/P&gt;&lt;P&gt;At this time perform a second build and I got:&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++&lt;/P&gt;&lt;P&gt;**** Build of configuration FLASH for project KL15_397200_OUTDOOR_SIREN_rev2_dual_trans2 ****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"F:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all&lt;/P&gt;&lt;P&gt;'Building target: KL15_397200_OUTDOOR_SIREN_rev2_dual.elf'&lt;/P&gt;&lt;P&gt;'Executing target #26 KL15_397200_OUTDOOR_SIREN_rev2_dual.elf'&lt;/P&gt;&lt;P&gt;'Invoking: ARM Ltd Windows GCC C Linker'&lt;/P&gt;&lt;P&gt;"F:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"&amp;nbsp;&amp;nbsp;&amp;nbsp; @"KL15_397200_OUTDOOR_SIREN_rev2_dual.args" -o"KL15_397200_OUTDOOR_SIREN_rev2_dual.elf"&lt;/P&gt;&lt;P&gt;./codice/radio.o:(.rodata.Radio_Configuration_Data_Array_433+0x0): multiple definition of `Radio_Configuration_Data_Array_433'&lt;/P&gt;&lt;P&gt;./codice/radio_cw.o:(.rodata.Radio_Configuration_Data_Array_433+0x0): first defined here&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;mingw32-make: *** [KL15_397200_OUTDOOR_SIREN_rev2_dual.elf] Error 1&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the linker detects multiple definition.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 14:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374081#M2083</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-11-07T14:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6 warning related to duplicated variable</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374082#M2084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muchas gracias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 15:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CW-10-6-warning-related-to-duplicated-variable/m-p/374082#M2084</guid>
      <dc:creator>stefanomanca</dc:creator>
      <dc:date>2014-11-07T15:45:23Z</dc:date>
    </item>
  </channel>
</rss>

