Re: alignment warning

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

 



> 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.


[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