[cups.bugs] [MOD] STR #4293: cups/auth.c ignoring return value of 'fgets' error
Douglas Kosovic
doug at uq.edu.au
Wed Mar 13 01:44:15 PDT 2013
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
With the current 1.6 SVN branch, cups/auth.c has the following error (on
RHEL6.3) because the return value of a 'fgets' call isn't being assigned
to a variable or being used :
Compiling auth.c...
gcc -Wshadow -Werror -Wall -Wno-format-y2k -Wunused -fPIC -g
-fstack-protector -D_GNU_SOURCE -I.. -D_CUPS_SOURCE -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fstack-protector-all -DLDAP_DEPRECATED=1
-I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE
-DOPENSSL_DISABLE_OLD_DES_SUPPORT -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT
-c -o auth.o auth.c
cc1: warnings being treated as errors
auth.c: In function 'cups_local_auth':
auth.c:858: error: ignoring return value of 'fgets', declared with
attribute warn_unused_result
make: *** [auth.o] Error 1
Link: https://www.cups.org/str.php?L4293
Version: 1.6-current
More information about the cups
mailing list