Menu

#8 Compiler warning: ignoring return value of ‘fgets’

Develop
open
nobody
None
Next_Release
8
2016-06-16
2016-06-16
No

Compile time warning when building the Debian package:

~/Projects/ttylog/build/ttylog-0.28/ttylog.c: In function ‘main’:
~/Projects/ttylog/build/ttylog-0.28/ttylog.c:198:11: warning: declared with attribute warn_unused_result [-Wunused-result]
fgets (line, 1024, logfile);
^

Discussion


Log in to post a comment.