<?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 for MCUのトピックRe: Handle warnings and/or messages.</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139400#M2297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;I decide to use this solution :&lt;BR /&gt;&lt;BR /&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_ref_mng();&lt;BR /&gt;&lt;BR /&gt;But, is that possible to add this sentence after, #pragma MESSAGE DEFAULT, i.e :&lt;BR /&gt;&lt;BR /&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_ref_mng();&lt;BR /&gt;#pragma MESSAGE DEFAULT&lt;BR /&gt;&lt;BR /&gt;I want to disable the message only for one instructions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vianney&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 14:37:24 GMT</pubDate>
    <dc:creator>VianneyC</dc:creator>
    <dc:date>2007-07-10T14:37:24Z</dc:date>
    <item>
      <title>Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139398#M2295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;I am working with CodeWarrior 5 and a HCS08 microcontroller, porting some code from Cosmic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder how is it possible do handle - e.g. - a warning message during the compilation to avoid his appearence in the compilation tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this instruction : "time_ref_mng();" , that generate the "&lt;/SPAN&gt;&lt;A target="_blank"&gt;C4301: Inline expansion done for function call" message. I don't want to modify the code to cancel the message when compiling, but only tell to the compiler that this situation is normal. Do you understood what I want to do ? Someone can give some advices and/or indications how to do&amp;nbsp; ?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Vianney&lt;/A&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 17:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139398#M2295</guid>
      <dc:creator>VianneyC</dc:creator>
      <dc:date>2007-07-09T17:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139399#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;there are several ways, but probably you want to use the -Wmsg compiler option:&lt;BR /&gt;-WmsgSd4301&lt;BR /&gt;disables the message 4301.&lt;BR /&gt;&lt;BR /&gt;See the -Wmsg option where you can move messages around (to disable, to warning, to error, etc).&lt;BR /&gt;&lt;BR /&gt;Otherwise you could use the&lt;BR /&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;but for this you would have to put that into your sources where you want to disable the message.&lt;BR /&gt;&lt;BR /&gt;Another way would be to put the above pragma into a header file (e.g. message.h) and then have it included for all your files you compile, using the -AddIncl compiler option:&lt;BR /&gt;-AddInclmessage.h&lt;BR /&gt;&lt;BR /&gt;Erich&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 20:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139399#M2296</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2007-07-09T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139400#M2297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;I decide to use this solution :&lt;BR /&gt;&lt;BR /&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_ref_mng();&lt;BR /&gt;&lt;BR /&gt;But, is that possible to add this sentence after, #pragma MESSAGE DEFAULT, i.e :&lt;BR /&gt;&lt;BR /&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_ref_mng();&lt;BR /&gt;#pragma MESSAGE DEFAULT&lt;BR /&gt;&lt;BR /&gt;I want to disable the message only for one instructions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vianney&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 14:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139400#M2297</guid>
      <dc:creator>VianneyC</dc:creator>
      <dc:date>2007-07-10T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139401#M2298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;the #pragma MESSAGE is on a per function base, so it will be valid for the whole function. You would need to place it before/after the function:&lt;BR /&gt;&lt;BR /&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;void myFunction(void) {&lt;BR /&gt;...&lt;BR /&gt;time_ref_mng();&lt;BR /&gt;...&lt;BR /&gt;}&lt;BR /&gt;#pragma MESSAGE DEFAULT C4301&lt;BR /&gt;&lt;BR /&gt;Erich&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 15:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139401#M2298</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2007-07-10T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139402#M2299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;Everything works well now, thanks.&lt;BR /&gt;&lt;BR /&gt;Vianney&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 16:22:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139402#M2299</guid>
      <dc:creator>VianneyC</dc:creator>
      <dc:date>2007-07-11T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139403#M2300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also working on CW v 6.compiler for HCS08 family. I am also facing one error message that&lt;/P&gt;&lt;P&gt;C4301: Inline expansion done for function call. i am using a function which was INLINE.&lt;/P&gt;&lt;P&gt;I am using the option you have mentioned above.&lt;/P&gt;&lt;P&gt;But still facing the same error. but the error message still exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma MESSAGE DISABLE C4301&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Initialize_HWIO_APPLStack();&lt;BR /&gt;#pragma MESSAGE DEFAULT C4301&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But if i use the second option, the warning was gone. The second option is used&amp;nbsp; was -WmsgSd4301&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know why i am not able to eliminate the warning with the 1st option.&lt;BR /&gt;Are there any settings do i need to set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 14:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139403#M2300</guid>
      <dc:creator>AnnaKoteswarara</dc:creator>
      <dc:date>2012-01-16T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139404#M2301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pragmas MESSAGE DISABLE and MESSAGE DEFAULT must be use prior and after the function, which invokes Initialize_HWIO_APPLStack.&lt;/P&gt;&lt;P&gt;Not around the prototype&amp;nbsp; for the function Initialize_HWIO_APPLStack&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 15:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139404#M2301</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-01-16T15:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139405#M2302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using befoere and after the inline function call where i am calling from the Main fucntion.&lt;/P&gt;&lt;P&gt;But even though i am seeing the warning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void Reset_Interrupt (void)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;#pragma MESSAGE DISABLE C4301&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* Initialize stack and Set Stack Pointer to start of stack area */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Initialize_HWIO_APPLStack();&lt;BR /&gt;#pragma MESSAGE DEFAULT C4301&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* Determine the cause of reset source */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 19:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139405#M2302</guid>
      <dc:creator>AnnaKoteswarara</dc:creator>
      <dc:date>2012-01-16T19:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Handle warnings and/or messages.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139406#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I tried the below one and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma MESSAGE DISABLE C4301&lt;/P&gt;&lt;P&gt;void Reset_Interrupt (void)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* Initialize stack and Set Stack Pointer to start of stack area */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Initialize_HWIO_APPLStack();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* Determine the cause of reset source */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#pragma MESSAGE DEFAULT C4301&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 19:50:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Handle-warnings-and-or-messages/m-p/139406#M2303</guid>
      <dc:creator>AnnaKoteswarara</dc:creator>
      <dc:date>2012-01-16T19:50:42Z</dc:date>
    </item>
  </channel>
</rss>

