- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- C compiler warning
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 07:28 AM
04-10-2008 07:28 AM
C compiler warning
str = (char *)va_arg(pvar,char *)
The warnings are all the same "Casting from loose to strict alignment".
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".
Can anyone help?
- Tags:
- va_arg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 09:46 AM
04-10-2008 09:46 AM
Re: C compiler warning
Actual compiler command(s)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 05:37 PM
04-10-2008 05:37 PM
Re: C compiler warning
>"Casting from loose to strict alignment".
I only see one per line.
>When ANSI migration warnings are asked for instead, "Large unsuffixed integer constant will be type unsigned integer in ANSI-C".
These are known problems in
JAGag11411: Warning 706 when using varargs.h +M0
JAGae16638: Warnings 530 on va_arg using varargs.h
I don't see any patches for this header.
I do see it incorrectly listed on:
PHSS_36092 PHSS_36089 PHSS_36086 PHSS_28706
You can of course just edit your copy of
>Steven: C compiler versions?
These are PA header file problems with
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 05:17 AM
04-11-2008 05:17 AM
Re: C compiler warning
Compiler command:
cc +w1 -DSYSV -Aa -D_HPUX_SOURCE -DXOPEN_CATALOG -DXT_CODE
Included
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 07:35 AM
04-11-2008 07:35 AM
Re: C compiler warning
> Compiler: HP C/HP UX Version B.11.11.16
That's a start. Should I need to guess the
HP-UX version (and hardware architecture), or
did you think that I knew enough to infer it
from the compiler version? (Ha!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 07:44 AM
04-11-2008 07:44 AM
Re: C compiler warning
;-))
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 12:25 PM
04-11-2008 12:25 PM
Re: C compiler warning
>Included
Yes but
>Steven: Should I need to guess the HP-UX version
No need. ALL PA versions are broken.
But you have a very valid point, answers to both questions should be supplied, even though redundant in this case.
>did you think that I knew enough to infer it
from the compiler version?
Yes, it is encoded. And anyone who can answer Nev's question would know this. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 12:02 AM
04-14-2008 12:02 AM
Re: C compiler warning
HP-UX version is 11i v1 (11.11i)
Workstation is C8000 (PA-RISC)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 02:20 AM
04-14-2008 02:20 AM
Re: C compiler warning
Why should be interesting? If you never supply a patch, it will never be fixed for customers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 01:52 AM
04-15-2008 01:52 AM
Re: C compiler warning
Any more ideas?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 02:02 AM
04-15-2008 02:02 AM
Re: C compiler warning
I have already said that the patch document is incorrect, it doesn't fix the problem because it doesn't supply
>>I don't see any patches for this header.
>>I do see it incorrectly listed on:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2008 07:21 AM
04-30-2008 07:21 AM