Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 374 by [email protected]: A compile warning
http://code.google.com/p/memcached/issues/detail?id=374
What steps will reproduce the problem?
1. I package a memcached.rpm on CentOS 6.3;
2. The default option of gcc is warnings being treated as errors;
3. Then an error happened.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
tag1.4.20
Please provide any additional information below.
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -pthread -Wall
-Werror -pedantic -Wmissing-prototypes -Wmissing-declarations
-Wredundant-decls -fno-strict-aliasing -MT memcached-memcached.o -MD -MP
-MF .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test
-f 'memcached.c' || echo './'`memcached.c
cc1: warnings being treated as errors
memcached.c: In function 'process_bin_get_or_touch':
memcached.c:1277: error: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/memcached-1.4.20'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/memcached-1.4.20'
make: *** [all] Error 2
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.