[stgt] [PATCH] Fix warnings when compiling iSCSI with gcc 4.3.3 on arm

Pete Batard pbatard at gmail.com
Sat Aug 14 00:31:02 CEST 2010


I have been seeing the following warnings during compilation on arm. 
Please find a small patch to address them:

------------------------------------------------------------------------
iscsi/iscsid.c: In function 'iscsi_transportid':
iscsi/iscsid.c:2289: warning: format not a string literal and no format 
arguments

iscsi/isns.c: In function 'print_scn_pdu':
iscsi/isns.c:571: warning: format not a string literal and no format 
arguments
iscsi/isns.c:571: warning: format not a string literal and no format 
arguments

tgtd.c: In function 'run_ext_program':
tgtd.c:292: warning: ignoring return value of 'write', declared with 
attribute warn_unused_result

tgtimg.c: In function 'sbc_new':
tgtimg.c:453: warning: ignoring return value of 'pwrite', declared with 
attribute warn_unused_result
------------------------------------------------------------------------

Another approach for the last 2 fixes would be of course to check the 
return value of write/pwrite.

Regards,

/Pete
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iscsi-fix-compilation-warnings.patch
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20100813/f36e7eb2/attachment-0001.ksh>


More information about the stgt mailing list