tst2005googlecode / umurmur

Automatically exported from code.google.com/p/umurmur
1 stars 0 forks source link

Build log with warnings (Debian hardened flags) #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Should be fixed in 
https://github.com/fatbob313/umurmur/commit/24eae60940b662324e71fe350108de759dc2
511a

Original comment by fatbob.s...@gmail.com on 11 Feb 2013 at 10:01