This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Vincent Torri wrote:
hey,
I have an ubuntu 64 bits on my core 2 duo. gcc version is 4.1.2
I compile that code with -Wall:
unsigned int htonl (unsigned int i) { i = 0; return 0; }
int main () { unsigned long i; unsigned int j;
i = 0; j = htonl (i);
I want to know why you assume j = ... should give a warning but not i = 0. (hint: what is the type of 0?).
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |