I have -Wpadded warning option on (gcc/g++) and getting these warnings for non-padded C/C++ structures as expected.
Now, I want to exclude some of the structures from that warning without having to actually pad them.
To make things even more complicated - I have "-Wall". This makes the approach with #pragma GCC diagnostics ignored -Wpadded
not usable (shame, would have been very neat).
Some sort of "pragma" directive in the code is what I would expect as a solution. Thanks in advance!
Please note that there was a misspelling in my original question text! Refer to the accepted answer for the confirmation that the method with #pragma actually works!