I get some warnings during build with debian hardened options (I'm building an
"official" debian package). We should avoid that kind of warnings to get a
chance to publish the package
main.c:198:5: warning: ignoring return value of ‘dup’, declared with
attribute warn_unused_result [-Wunused-result]
main.c:199:5: warning: ignoring return value of ‘dup’, declared with
attribute warn_unused_result [-Wunused-result]
main.c:202:7: warning: ignoring return value of ‘chdir’, declared with
attribute warn_unused_result [-Wunused-result]
main.c: In function ‘lockfile’:
main.c:92:7: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result]
ban.c: In function ‘Ban_saveBanFile’:
ban.c:257:11: warning: format ‘%d’ expects argument of type ‘int’, but
argument 6 has type ‘time_t’ [-Wformat]
What version of the product are you using? On what operating system?
0.2.10 on Debian Wheezy.
Is this possible to handle the results of those functions calls (to get rid of
those warnings). Will appreciate it.
Cheers!
Original issue reported on code.google.com by pierre.h...@gmail.com on 9 Jan 2013 at 10:54
Original issue reported on code.google.com by
pierre.h...@gmail.com
on 9 Jan 2013 at 10:54