From: Ian Jackson Subject: [PATCH] libxen compilation fixes Date: Tue, 15 Jan 2008 17:04:07 +0000 Message-ID: <18316.59271.904412.508011@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gnroiRmW3M" Content-Transfer-Encoding: 7bit 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 --gnroiRmW3M Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit xen_common.h has the following function declaration: extern xen_version *xen_get_client_side_version(void); This is not a prototype and should be. Compilers invoked with sensible warning options barf on declarations which do not specify the argument types, even for function pointers. Also, libxen should be compiled with -Wno-declaration-after-statement since it uses that programming style. Ian. Signed-off-by: Ian Jackson --gnroiRmW3M Content-Type: text/plain Content-Description: libxen minor fixes Content-Disposition: inline; filename="xenapi-compile-fix.patch" Content-Transfer-Encoding: 7bit Index: xen-unstable.hg/tools/libxen/include/xen/api/xen_common.h =================================================================== --- xen-unstable.hg.orig/tools/libxen/include/xen/api/xen_common.h 2008-01-15 16:06:48.000000000 +0000 +++ xen-unstable.hg/tools/libxen/include/xen/api/xen_common.h 2008-01-15 16:06:50.000000000 +0000 @@ -107,7 +107,7 @@ * minor, and extraversion of the Xen release with which it was released, * plus the library's own version as the patch. */ -extern xen_version *xen_get_client_side_version(); +extern xen_version *xen_get_client_side_version(void); extern bool Index: xen-unstable.hg/tools/libxen/Makefile =================================================================== --- xen-unstable.hg.orig/tools/libxen/Makefile 2008-01-15 16:06:48.000000000 +0000 +++ xen-unstable.hg/tools/libxen/Makefile 2008-01-15 16:06:50.000000000 +0000 @@ -24,7 +24,8 @@ CFLAGS = -Iinclude \ $(shell xml2-config --cflags) \ $(shell curl-config --cflags) \ - -W -Wall -Wmissing-prototypes -Werror -std=c99 -O2 -fPIC + -W -Wall -Wmissing-prototypes -Werror -std=c99 -O2 -fPIC \ + -Wno-declaration-after-statement LDFLAGS = $(shell xml2-config --libs) \ $(shell curl-config --libs) Index: xen-unstable.hg/tools/libxen/Makefile.dist =================================================================== --- xen-unstable.hg.orig/tools/libxen/Makefile.dist 2008-01-15 16:06:48.000000000 +0000 +++ xen-unstable.hg/tools/libxen/Makefile.dist 2008-01-15 16:06:50.000000000 +0000 @@ -22,7 +22,8 @@ CFLAGS = -Iinclude \ $(shell xml2-config --cflags) \ $(shell curl-config --cflags) \ - -W -Wall -Wmissing-prototypes -Werror -std=c99 -O2 -fPIC + -W -Wall -Wmissing-prototypes -Werror -std=c99 -O2 -fPIC \ + -Wno-declaration-after-statement LDFLAGS = $(shell xml2-config --libs) \ $(shell curl-config --libs) --gnroiRmW3M Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --gnroiRmW3M--