<?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>LPCXpresso IDEのトピックRe: -fno-short-enums</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556690#M14239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Feb 26 09:39:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use that option EVERY object and library that you link with must also have been built with that option. This includes any 'system' libraries that you may be using, such as redlib/newlib etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if there is a way to suppress the warning - it really is not one that should be suppressed anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:35:38 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:35:38Z</dc:date>
    <item>
      <title>-fno-short-enums</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556689#M14238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by david35 on Tue Feb 26 07:35:51 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on LPC1777 with LPCXpresso 4.3. Currently, my code is compiled in mode "short-enum-size". I would like to compile with "-fno-short-enums" option but with this setting, I have a lot of warnings like "uses 32-bit enums yet the output is to use variable-size enums; use of enum values accross objects may fail". (data transfer between my electronic board and a PC). I want to fix and suppress theses warnings, but how? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556689#M14238</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: -fno-short-enums</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556690#M14239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Feb 26 09:39:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use that option EVERY object and library that you link with must also have been built with that option. This includes any 'system' libraries that you may be using, such as redlib/newlib etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if there is a way to suppress the warning - it really is not one that should be suppressed anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556690#M14239</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: -fno-short-enums</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556691#M14240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by david35 on Wed Feb 27 02:31:57 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer. this is what I imagine. Are Redlib source code available? Where can I find it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556691#M14240</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: -fno-short-enums</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556692#M14241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Wed Feb 27 02:43:31 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No it is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why do you think you need this option?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556692#M14241</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: -fno-short-enums</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556693#M14242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by david35 on Wed Feb 27 09:40:47 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, I understand that REDLIB source code is not available. Is there another solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To sum our need, we use an API (from a previous developement) that contains enums defined on 32bits. if it is not possible to modify the REDLIB, is there any risk to work with a project built with no-short-enums option while REDLIB is in short-enum-size option?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If no solution, is it possible to desactivate these warnings at the end of the built in order to be sure to not forget real warnings dissimulated in the warning list? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556693#M14242</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: -fno-short-enums</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556694#M14243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Feb 28 02:28:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can download and build Newlib sources....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you could workaround this issue by changing your enum definitions so that (at least one of) the definitions uses an int value. For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
enum my_enum {
&amp;nbsp;&amp;nbsp; first = (int) 0, // forces size of enum to be an int
&amp;nbsp;&amp;nbsp; second,
&amp;nbsp;&amp;nbsp; third,
&amp;nbsp;&amp;nbsp; etc
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/fno-short-enums/m-p/556694#M14243</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:40Z</dc:date>
    </item>
  </channel>
</rss>

