<?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>8-bit Microcontrollers中的主题 Re: How to turn off warnings?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288135#M20458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what's the warning message number? or can you please post a screenshot of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 05:17:35 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2013-07-24T05:17:35Z</dc:date>
    <item>
      <title>How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288129#M20452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The start08.c code for the MC9S08 generates two warnings.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unused declaration of function '_COPY_L'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Unused declaration of function 'main'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is an analysis warning, the #pragmas don't work? There is a comment above the _COPY_L warning that says&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*lint -esym(752,_COPY_L)&amp;nbsp; inhibit message on function declared, but not used (it is used in HLI) */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I use this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 18:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288129#M20452</guid>
      <dc:creator>gregoryberardi</dc:creator>
      <dc:date>2013-07-23T18:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288130#M20453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want to do this globally. I just want the warnings from freescale's code to go away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 19:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288130#M20453</guid>
      <dc:creator>gregoryberardi</dc:creator>
      <dc:date>2013-07-23T19:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288131#M20454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pragma in below could help to disable&amp;nbsp; a warning message. For details, please refer to Build Tools Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma MESSAGE {(WARNING|ERROR| INFORMATION|DISABLE|DEFAULT){&amp;lt;CNUM&amp;gt;}}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 01:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288131#M20454</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2013-07-24T01:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288132#M20455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can use “#pragma OPTION: Additional Options” to "partial " of Compiler throughout code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;#pragma OPTION ADD [&amp;lt;Handle&amp;gt;] "&amp;lt;Option&amp;gt;"&lt;/P&gt;&lt;P&gt;#pragma OPTION DEL &amp;lt;Handle&amp;gt;&lt;/P&gt;&lt;P&gt;#pragma OPTION DEL ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Options are added inside of the source code while compiling a file.&lt;/P&gt;&lt;P&gt;The options given on the command line or in a configuration file cannot be changed in any way.&lt;/P&gt;&lt;P&gt;Additional options are added to the current ones with the ADD command. A handle may be given optionally.&lt;/P&gt;&lt;P&gt;The DEL command either removes all options with a specific handle. It also uses the ALL keyword to remove all added options regardless if they have a handle or not. Note that you only can remove options which were added previously with the OPTION ADD pragma.&lt;/P&gt;&lt;P&gt;All keywords and the handle are case-sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check more information in Compiler_HC12.pdf under your CW install. Search the document with keyword "pragma OPTION".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you want disable warning C4443 . you can use below for the section of code&lt;/P&gt;&lt;P&gt;#pragma OPTION ADD handle "-WmsgSd4443"&lt;/P&gt;&lt;P&gt;&amp;lt;.....your code...&amp;gt;&lt;/P&gt;&lt;P&gt;#pragma OPTION DEL ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 01:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288132#M20455</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-07-24T01:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288133#M20456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The start08.c code for the MC9S08 generates two warnings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Unused declaration of function '_COPY_L'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Unused declaration of function 'main'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Those are the exact warnings and as you can see there is no CNUM. How do I add the exception for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 02:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288133#M20456</guid>
      <dc:creator>gregoryberardi</dc:creator>
      <dc:date>2013-07-24T02:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288134#M20457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;The start08.c code for the MC9S08 generates two warnings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;Unused declaration of function '_COPY_L'&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;and&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;Unused declaration of function 'main'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;Those are the exact warnings and as you can see there is no CNUM. How do I add the exception for this?&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;I tried &lt;/P&gt;&lt;P style="font-style: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;#pragma MESSAGE WARNING DISABLE&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;and it had no effect.&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit;"&gt;Any other ideas?&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/310013" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #6a737b; background-color: #f3f3f3;"&gt;How to turn off warnings?&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 02:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288134#M20457</guid>
      <dc:creator>gregoryberardi</dc:creator>
      <dc:date>2013-07-24T02:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288135#M20458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what's the warning message number? or can you please post a screenshot of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 05:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288135#M20458</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-07-24T05:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288136#M20459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Start08_Error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40060i5BFEB542954B53DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Start08_Error.png" alt="Start08_Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see. There are no "warning message numbers". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the offending code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*lint -esym(752,_COPY_L)&amp;nbsp; inhibit message on function declared, but not used (it is used in HLI) */&lt;/P&gt;&lt;P&gt;__EXTERN_C extern void _COPY_L(void);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see there is a comment that says that you can "inhibit message" but I don't know how to add this to lint in codewarrior. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the other offending code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*lint -esym(752, main) main is used in HLI */&lt;/P&gt;&lt;P&gt;__EXTERN_C extern void main(void); /* prototype of main function */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to configure lint in codewarrior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 13:26:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288136#M20459</guid>
      <dc:creator>gregoryberardi</dc:creator>
      <dc:date>2013-07-24T13:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288137#M20460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i can't reproduce your prolem as your screenshot shows. can you please upload your demo project so that we check see the problem directly? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 02:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288137#M20460</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-07-25T02:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off warnings?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288138#M20461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started a new project and copied the code over to it and the problem disappeared. Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 15:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-turn-off-warnings/m-p/288138#M20461</guid>
      <dc:creator>gregoryberardi</dc:creator>
      <dc:date>2013-08-07T15:20:12Z</dc:date>
    </item>
  </channel>
</rss>

