This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: alignment warning
> Could you provide a complete, small compilable example that produces the
> warning?
-------------------- source begin ---------------------
class c1
{
virtual void x() { }
};
c1 zzz;
int main(int argc, char **argv)
{
return 0;
}
-------------------- source end -----------------------
This is a full source code which prodices the warning message:
$> avr-g++ x.cpp
x.cpp:2: warning: alignment of âc1::_ZTV2c1â is greater than maximum object
file alignment. Using 1
The x86 version of gcc does not send any messages.
Regards
K. Gy.