[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] compiler strange warning reporting
From: |
Dennis Opanasenko |
Subject: |
[avr-gcc-list] compiler strange warning reporting |
Date: |
Thu, 22 Sep 2005 12:20:25 +0900 |
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:address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] compiler strange warning reporting,
Dennis Opanasenko <=