From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srinivas Maturi Subject: xen-unstable build failure in tools/blktap/drivers for block-qcow2.c Date: Wed, 27 Feb 2008 12:08:50 -0800 Message-ID: <47C5C352.4020200@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org We are seeing build failure of xen-unstable for the last couple of=20 changesets, in tools/blktap/drivers for block-qcow2.c This seems to be because of the fact that the compile line uses these flags, -Werror -Wno-unused, treating warnings as errors and aborting the compilation. The Makefile in tools/blktap/drivers has these CFLAGS set: CFLAGS +=3D -Werror CFLAGS +=3D -Wno-unused gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions=20 -fstack-protector --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric -m6= 4=20 -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes=20 -Wno-unused-value -Wdeclaration-after-statement -m64=20 -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes=20 -Wno-unused-value -Wdeclaration-after-statement -m64=20 -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes=20 -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__=20 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -m64 -fno-strict-aliasing=20 -std=3Dgnu99 -Wall -Wstrict-prototypes -Wno-unused-value=20 -Wdeclaration-after-statement -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE=20 -D_LARGEFILE64_SOURCE -m64 -fno-strict-aliasing -std=3Dgnu99 -Wall=20 -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement=20 -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -m64=20 -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes=20 -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__=20 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror -Wno-unused=20 -I../../../tools/libxc -I../../../tools/include -I ../../libaio/src -I..=20 -I../lib -I../../../tools/include -I. -I../../xenstore -D_GNU_SOURCE=20 -Wp,-MD,.block-qcow2.o.d -c -o block-qcow2.o block-qcow2.c cc1: warnings being treated as errors block-qcow2.c: In function =91qcow2_create=92: block-qcow2.c:1312: warning: ignoring return value of =91write=92, declar= ed=20 with attribute warn_unused_result block-qcow2.c:1314: warning: ignoring return value of =91write=92, declar= ed=20 with attribute warn_unused_result block-qcow2.c:1319: warning: ignoring return value of =91write=92, declar= ed=20 with attribute warn_unused_result block-qcow2.c:1322: warning: ignoring return value of =91write=92, declar= ed=20 with attribute warn_unused_result block-qcow2.c:1325: warning: ignoring return value of =91write=92, declar= ed=20 with attribute warn_unused_result block-qcow2.c: In function =91qcow_write_compressed=92: block-qcow2.c:1354: warning: ignoring return value of =91ftruncate=92,=20 declared with attribute warn_unused_result ..... ..... Thanks, Maturi