<?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: Inconsistent Warning Message C2705 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Inconsistent-Warning-Message-C2705/m-p/490728#M12604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ray&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;What is the data type of TIM_TFLG1_C0F_MASK~ TIM_TFLG1_C5F_MASK, and what is the data type of TIM_TFLG1?&amp;nbsp;&amp;nbsp; We need to the code context to dig out the reason. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;By default, the compiler uses 16bit for the operand “1”of the &amp;lt;&amp;lt;operator in your code. So please add the typecast for this kind of operation to get rid of the warning. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;TIC - Technical Information Center&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Mark Correct button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 03:53:27 GMT</pubDate>
    <dc:creator>TICS_Fiona</dc:creator>
    <dc:date>2016-05-03T03:53:27Z</dc:date>
    <item>
      <title>Inconsistent Warning Message C2705</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Inconsistent-Warning-Message-C2705/m-p/490727#M12603</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 getting this warning only for some of basically the same code. "Warning C2750: Possible loss of data"&lt;/P&gt;&lt;P&gt;I can disable the message, but would prefer not to do this. What is wrong ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIM_TFLG1 &amp;amp;= ~(1&amp;lt;&amp;lt;TIM_TFLG1_C0F_MASK); // No warning&lt;/P&gt;&lt;P&gt;TIM_TFLG1 &amp;amp;= ~(1&amp;lt;&amp;lt;TIM_TFLG1_C1F_MASK); // No warning&lt;/P&gt;&lt;P&gt;TIM_TFLG1 &amp;amp;= ~(1&amp;lt;&amp;lt;TIM_TFLG1_C2F_MASK); // No warning&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIM_TFLG1 &amp;amp;= ~(1&amp;lt;&amp;lt;TIM_TFLG1_C3F_MASK); // Get Warning C2705&lt;/P&gt;&lt;P&gt;TIM_TFLG1 &amp;amp;= ~(1&amp;lt;&amp;lt;TIM_TFLG1_C4F_MASK); // Get Warning C2705&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIM_TFLG1 &amp;amp;= ~(1&amp;lt;&amp;lt;TIM_TFLG1_C5F_MASK); // No warning&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The micro is the S12XE.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 09:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Inconsistent-Warning-Message-C2705/m-p/490727#M12603</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2016-05-02T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Warning Message C2705</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Inconsistent-Warning-Message-C2705/m-p/490728#M12604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ray&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;What is the data type of TIM_TFLG1_C0F_MASK~ TIM_TFLG1_C5F_MASK, and what is the data type of TIM_TFLG1?&amp;nbsp;&amp;nbsp; We need to the code context to dig out the reason. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;By default, the compiler uses 16bit for the operand “1”of the &amp;lt;&amp;lt;operator in your code. So please add the typecast for this kind of operation to get rid of the warning. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;TIC - Technical Information Center&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Mark Correct button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 03:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Inconsistent-Warning-Message-C2705/m-p/490728#M12604</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-05-03T03:53:27Z</dc:date>
    </item>
  </channel>
</rss>

