structure pragma
Jonathan Wakely
jwakely.gcc@gmail.com
Fri Apr 1 16:59:00 GMT 2011
On 1 April 2011 14:54, aleksazr wrote:
>
> I'm using a third-party header file that contains structures
> with non-aligned items and GCC 4.6.0 gives me a bunch of
> "padding struct to align" and "padding struct size" msgs.
>
> How can I disable those warnings for that header file only?
If there's a warning option controlling them (shown as [-W...] in the
warning diagnostic) you can use pragmas:
http://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Diagnostic-Pragmas.html
More information about the Gcc-help
mailing list