- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nonstandard type for a bit field warning
Operating System - HP-UX
1753601
Members
6602
Online
108796
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-11-2009 07:55 AM
02-11-2009 07:55 AM
nonstandard type for a bit field warning
I am compiling a C application on an HP Unix 11.23 platform using the C99 compiler. I am receiving the following three warning message from the /usr/include/sys/_mbstate_t.h include file.
"/usr/include/sys/_mbstate_t.h", line 11: warning #2230-D: nonstandard type
for a bit field
unsigned char __parse_size:3;
^
"/usr/include/sys/_mbstate_t.h", line 12: warning #2230-D: nonstandard type
for a bit field
unsigned char __dummy:4;
^
"/usr/include/sys/_mbstate_t.h", line 13: warning #2230-D: nonstandard type
for a bit field
unsigned char __shift_state:1;
I understand that the c99 compiler warns the user of the use of "unsigned char". However, this is in a system include file. Is there a compiler option that will tell the c99 compiler to accept "unsigned char"? I don't want to surpress warning messages and I really don't like to ignore warning messages. Any help will be greatly appreciated.
"/usr/include/sys/_mbstate_t.h", line 11: warning #2230-D: nonstandard type
for a bit field
unsigned char __parse_size:3;
^
"/usr/include/sys/_mbstate_t.h", line 12: warning #2230-D: nonstandard type
for a bit field
unsigned char __dummy:4;
^
"/usr/include/sys/_mbstate_t.h", line 13: warning #2230-D: nonstandard type
for a bit field
unsigned char __shift_state:1;
I understand that the c99 compiler warns the user of the use of "unsigned char". However, this is in a system include file. Is there a compiler option that will tell the c99 compiler to accept "unsigned char"? I don't want to surpress warning messages and I really don't like to ignore warning messages. Any help will be greatly appreciated.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2009 04:31 PM
02-11-2009 04:31 PM
Re: nonstandard type for a bit field warning
What version of aC++ are you using?
The only way you can get that warning on system include files is if you are illegally including the default include path, -I/usr/include. Remove it.
>Is there a compiler option that will tell the c99 compiler to accept "unsigned char"?
The compiler does accept it. By using c99 instead of "cc -AC99", you are asking to get that warning.
You can suppress warning 2230 with +W2230.
The only way you can get that warning on system include files is if you are illegally including the default include path, -I/usr/include. Remove it.
>Is there a compiler option that will tell the c99 compiler to accept "unsigned char"?
The compiler does accept it. By using c99 instead of "cc -AC99", you are asking to get that warning.
You can suppress warning 2230 with +W2230.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP