------- Comment #1 from muntyan at tamu dot edu 2007-01-25 13:27 ------- The original code warns if you use -O3 (I guess because of inlining or something), the code below is better:
------------------------- #include <stdio.h> int func (void); int main (void) { int foo; if (func ()) foo = 8; printf ("%d\n", foo); return 0; } ------------------------- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30575