<?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: C compiler warning in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102670#M91276</link>
    <description>No solution was forthcoming from the replies received, but I managed to find a work-around in my code such that I did not need to use a function with a variable number of args.</description>
    <pubDate>Wed, 30 Apr 2008 14:21:12 GMT</pubDate>
    <dc:creator>Nivel</dc:creator>
    <dc:date>2008-04-30T14:21:12Z</dc:date>
    <item>
      <title>C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102659#M91265</link>
      <description>I am trying to clear C compiler warnings. For the attached program extract (a function StringsToArray, used to place a variable number of strings into an array), 3 compiler warnings are issued for each line:&lt;BR /&gt;str = (char *)va_arg(pvar,char *)&lt;BR /&gt;The warnings are all the same "Casting from loose to strict alignment".&lt;BR /&gt;When ANSI migration warnings are asked for instead, a different warning for the same lines is issued "Large unsuffixed integer constant will be type unsigned integer in ANSI-C".&lt;BR /&gt;Can anyone help?</description>
      <pubDate>Thu, 10 Apr 2008 14:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102659#M91265</guid>
      <dc:creator>Nivel</dc:creator>
      <dc:date>2008-04-10T14:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102660#M91266</link>
      <description>HP-UX, C compiler versions?&lt;BR /&gt;Actual compiler command(s)?</description>
      <pubDate>Thu, 10 Apr 2008 16:46:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102660#M91266</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-04-10T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102661#M91267</link>
      <description>&amp;gt;3 compiler warnings are issued for each line: str = va_arg(pvar,char*)&lt;BR /&gt;&amp;gt;"Casting from loose to strict alignment".&lt;BR /&gt;&lt;BR /&gt;I only see one per line.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;When ANSI migration warnings are asked for instead, "Large unsuffixed integer constant will be type unsigned integer in ANSI-C".&lt;BR /&gt;&lt;BR /&gt;These are known problems in &lt;VARARGS.H&gt;, even on 11.31:&lt;BR /&gt;JAGag11411: Warning 706 when using varargs.h +M0&lt;BR /&gt;JAGae16638: Warnings 530 on va_arg using varargs.h&lt;BR /&gt;&lt;BR /&gt;I don't see any patches for this header.&lt;BR /&gt;I do see it incorrectly listed on:&lt;BR /&gt;PHSS_36092 PHSS_36089 PHSS_36086 PHSS_28706&lt;BR /&gt;&lt;BR /&gt;You can of course just edit your copy of &lt;VARARGS.H&gt;.  :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: C compiler versions?&lt;BR /&gt;&lt;BR /&gt;These are PA header file problems with &lt;VARARGS.H&gt;.&lt;/VARARGS.H&gt;&lt;/VARARGS.H&gt;&lt;/VARARGS.H&gt;</description>
      <pubDate>Fri, 11 Apr 2008 00:37:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102661#M91267</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-11T00:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102662#M91268</link>
      <description>Compiler: HP C/HP UX Version B.11.11.16&lt;BR /&gt;Compiler command:&lt;BR /&gt;cc +w1 -DSYSV -Aa -D_HPUX_SOURCE -DXOPEN_CATALOG -DXT_CODE&lt;BR /&gt;&lt;BR /&gt;Included &lt;STDARG.H&gt; NOT &lt;VARARGS.H&gt;&lt;/VARARGS.H&gt;&lt;/STDARG.H&gt;</description>
      <pubDate>Fri, 11 Apr 2008 12:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102662#M91268</guid>
      <dc:creator>Nivel</dc:creator>
      <dc:date>2008-04-11T12:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102663#M91269</link>
      <description>&amp;gt; HP-UX, C compiler versions?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Compiler: HP C/HP UX Version B.11.11.16&lt;BR /&gt;&lt;BR /&gt;That's a start.  Should I need to guess the&lt;BR /&gt;HP-UX version (and hardware architecture), or&lt;BR /&gt;did you think that I knew enough to infer it&lt;BR /&gt;from the compiler version?  (Ha!)</description>
      <pubDate>Fri, 11 Apr 2008 14:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102663#M91269</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-04-11T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102664#M91270</link>
      <description>I would guess its 11.11 and PA-RISC because of this ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;;-))</description>
      <pubDate>Fri, 11 Apr 2008 14:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102664#M91270</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-04-11T14:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102665#M91271</link>
      <description>&amp;gt;HP C/HP UX Version B.11.11.16&lt;BR /&gt;&amp;gt;Included &lt;STDARG.H&gt; NOT &lt;VARARGS.H&gt;&lt;BR /&gt;&lt;BR /&gt;Yes but &lt;STDARG.H&gt; is just a wrapper around &lt;VARARGS.H&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: Should I need to guess the HP-UX version&lt;BR /&gt;&lt;BR /&gt;No need.  ALL PA versions are broken.&lt;BR /&gt;But you have a very valid point, answers to both questions should be supplied, even though redundant in this case.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;did you think that I knew enough to infer it&lt;BR /&gt;from the compiler version? &lt;BR /&gt;&lt;BR /&gt;Yes, it is encoded.  And anyone who can answer Nev's question would know this.  :-)&lt;/VARARGS.H&gt;&lt;/STDARG.H&gt;&lt;/VARARGS.H&gt;&lt;/STDARG.H&gt;</description>
      <pubDate>Fri, 11 Apr 2008 19:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102665#M91271</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-11T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102666#M91272</link>
      <description>Thanks Dennis.&lt;BR /&gt;HP-UX version is 11i v1 (11.11i)&lt;BR /&gt;Workstation is C8000 (PA-RISC)&lt;BR /&gt;Interesting that the warnings I have seen (530 and 706) are the two that you have indicated occur because of the known problems with varargs.h</description>
      <pubDate>Mon, 14 Apr 2008 07:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102666#M91272</guid>
      <dc:creator>Nivel</dc:creator>
      <dc:date>2008-04-14T07:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102667#M91273</link>
      <description>&amp;gt;Interesting that the warnings I have seen (530 and 706) are the two that you have indicated occur because of the known problems with varargs.h.&lt;BR /&gt;&lt;BR /&gt;Why should be interesting?  If you never supply a patch, it will never be fixed for customers.</description>
      <pubDate>Mon, 14 Apr 2008 09:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102667#M91273</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-14T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102668#M91274</link>
      <description>I have installed patch PHSS_36086 (the only one relevant to my compiler / HP UX version). The warnings as described in my original post are still issued.&lt;BR /&gt;Any more ideas?&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Tue, 15 Apr 2008 08:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102668#M91274</guid>
      <dc:creator>Nivel</dc:creator>
      <dc:date>2008-04-15T08:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102669#M91275</link>
      <description>&amp;gt;I have installed patch PHSS_36086&lt;BR /&gt;&lt;BR /&gt;I have already said that the patch document is incorrect, it doesn't fix the problem because it doesn't supply &lt;VARARGS.H&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;I don't see any patches for this header.&lt;BR /&gt;&amp;gt;&amp;gt;I do see it incorrectly listed on:&lt;BR /&gt;&lt;BR /&gt;If you have a support contract, you should contact the Response Center and mention that fixes for these two bugs weren't delivered and you need a &lt;VARARGS.H&gt; patch.&lt;/VARARGS.H&gt;&lt;/VARARGS.H&gt;</description>
      <pubDate>Tue, 15 Apr 2008 09:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102669#M91275</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-15T09:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler warning</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102670#M91276</link>
      <description>No solution was forthcoming from the replies received, but I managed to find a work-around in my code such that I did not need to use a function with a variable number of args.</description>
      <pubDate>Wed, 30 Apr 2008 14:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-warning/m-p/5102670#M91276</guid>
      <dc:creator>Nivel</dc:creator>
      <dc:date>2008-04-30T14:21:12Z</dc:date>
    </item>
  </channel>
</rss>

