Whamcloud - gitweb
LU-6394 all: fix compilation errors with FORTIFY_SOURCE 26/14126/7
authorFrank Zago <fzago@cray.com>
Fri, 20 Mar 2015 20:37:13 +0000 (15:37 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 6 Apr 2015 01:06:29 +0000 (01:06 +0000)
commitc58d3c5a102f97c6014b9a6342e6f7afd3a5cf5c
tree7d5cd73df072b9ba17574c2d41b7eebc05d8b59b
parent3998a8e474b58a5bb4bc47b620adc836c27ab70d
LU-6394 all: fix compilation errors with FORTIFY_SOURCE

When Lustre is configured with CFLAGS="-D_FORTIFY_SOURCE=2 -O2" on
Centos 6, the compilation will fails with errors such as this one:

 cacheio.c: In function ‘qword_printhex’:
 cacheio.c:174: error: ignoring return value of ‘fwrite’, declared
   with attribute warn_unused_result

Signed-off-by: frank zago <fzago@cray.com>
Change-Id: Ie06fd5a26b62daf62bfd0133a2d7ebc66ece5be6
Reviewed-on: http://review.whamcloud.com/14126
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/llapi_fid_test.c
lustre/utils/gss/cacheio.c
lustre/utils/gss/cacheio.h
lustre/utils/gss/context_lucid.c
lustre/utils/gss/svcgssd.c