All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxen compilation fixes
@ 2008-01-15 17:04 Ian Jackson
  2008-01-15 18:38 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2008-01-15 17:04 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 460 bytes --]

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 <ian.jackson@eu.citrix.com>


[-- Attachment #2: libxen minor fixes --]
[-- Type: text/plain, Size: 1981 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-16 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 17:04 [PATCH] libxen compilation fixes Ian Jackson
2008-01-15 18:38 ` Keir Fraser
2008-01-16 10:15   ` Ian Jackson
2008-01-16 12:41     ` Andre Przywara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.