Re: structure pragma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux