<?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>CodeWarrior Development ToolsのトピックRe: #pragma MESSAGE WARNING DISABLE C5909 for a few lines.</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/pragma-MESSAGE-WARNING-DISABLE-C5909-for-a-few-lines/m-p/357957#M1761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ssinfod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. according to Codewarrior compiler manual : This pragma (as other pragmas) has to be specified outside of the function's scope. For example, it is not possible to change a message inside a function or for a part of a function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-03-05_16-22-33.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51021i4A25E8DD55327157/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-03-05_16-22-33.png" alt="2015-03-05_16-22-33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;pls be aware of this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use '#pragma MESSAGE DEFAULT C5909 " or "#pragma MESSAGE WARNING" to enable it again.&lt;/P&gt;&lt;P&gt;I attached my demo code, it's for C1420 but the method is the same for C5909.&lt;/P&gt;&lt;P&gt;can this help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Thu, 05 Mar 2015 08:31:11 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-03-05T08:31:11Z</dc:date>
    <item>
      <title>#pragma MESSAGE WARNING DISABLE C5909 for a few lines.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/pragma-MESSAGE-WARNING-DISABLE-C5909-for-a-few-lines/m-p/357956#M1760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using CodeWarrior 5.1 for HCS12.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to disable a warning message (C5909) for a few lines and then re-enable it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I must use this line to disable it.&lt;/P&gt;&lt;P&gt;#pragma MESSAGE WARNING DISABLE C5909&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I don't know how to re-enable it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #pragma MESSAGE WARNING DISABLE C5909&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(*pbuf++ = *s++);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #pragma MESSAGE WARNING &lt;SPAN style="color: #ff0000;"&gt;ENABLE&lt;/SPAN&gt; C5909&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with ENABLE instead of DISABLE but that is not working.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to perform this ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ssinfod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/pragma-MESSAGE-WARNING-DISABLE-C5909-for-a-few-lines/m-p/357956#M1760</guid>
      <dc:creator>ssinfod</dc:creator>
      <dc:date>2015-03-04T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma MESSAGE WARNING DISABLE C5909 for a few lines.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/pragma-MESSAGE-WARNING-DISABLE-C5909-for-a-few-lines/m-p/357957#M1761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ssinfod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. according to Codewarrior compiler manual : This pragma (as other pragmas) has to be specified outside of the function's scope. For example, it is not possible to change a message inside a function or for a part of a function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-03-05_16-22-33.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51021i4A25E8DD55327157/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-03-05_16-22-33.png" alt="2015-03-05_16-22-33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;pls be aware of this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use '#pragma MESSAGE DEFAULT C5909 " or "#pragma MESSAGE WARNING" to enable it again.&lt;/P&gt;&lt;P&gt;I attached my demo code, it's for C1420 but the method is the same for C5909.&lt;/P&gt;&lt;P&gt;can this help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Thu, 05 Mar 2015 08:31:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/pragma-MESSAGE-WARNING-DISABLE-C5909-for-a-few-lines/m-p/357957#M1761</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-03-05T08:31:11Z</dc:date>
    </item>
  </channel>
</rss>

