This is the mail archive of the gcc-bugs@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]

[Bug c/38876] cannot reuse input stream 1022 times on same file



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]