I wrote this code:

class obj
{
public:
        obj(void) { };

        void virtual Process(void);
};

void obj::Process(void)
{
}

And got the warning:
avr-c++ -c -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=16000000UL  -Os -funsigned-char 
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wa,-adhlns=objects.lst  
 -MD -MP -MF .dep/objects.o.d objects.c -o objects.o
objects.h:2: warning: alignment of 'obj::_ZTV3obj' is greater than maximum 
object file alignment.  Using 1

Directives "__attribute__" either "align" with different values or
"packed" have no effects.

I think this code is ok, but compliler behavior looks strange.

-- 
С уважением,
 Денис Опанасенко                       mailto:[EMAIL PROTECTED]



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to