This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: structure pragma


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]