------- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-16 18:05 ------- close is not fclose. close works on file numbers and not FILE*.
t.c:4: warning: return type defaults to 'int' t.c: In function 'main': t.c:13: warning: format '%0x' expects type 'unsigned int', but argument 3 has type 'struct FILE *' t.c:14: warning: 'return' with no value, in function returning non-void t.c:16: warning: implicit declaration of function 'close' t.c:4: warning: unused parameter 'argc' t.c:5: warning: unused parameter 'argv' Note implicit declaration warning :). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38876