A
Arash Partow
Hi all,
I have the following bit of code:
int main()
{
unsigned int a = 0xAAAAAAAA;
unsigned int g = 0x55555555;
a = (a <<= 1) ^ g;
return 0;
}
GCC outputs the following warning:
code.c: In function `main':
code.c:5: warning: operation on `a' may be undefined
I was wondering if anyone could explain why "a" may be undefined?
Is this referenced somewhere in the cfaq?
Arash Partow
__________________________________________________
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net
I have the following bit of code:
int main()
{
unsigned int a = 0xAAAAAAAA;
unsigned int g = 0x55555555;
a = (a <<= 1) ^ g;
return 0;
}
GCC outputs the following warning:
code.c: In function `main':
code.c:5: warning: operation on `a' may be undefined
I was wondering if anyone could explain why "a" may be undefined?
Is this referenced somewhere in the cfaq?
Arash Partow
__________________________________________________
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net