diff options
author | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2010-08-17 17:20:53 +0100 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2010-08-17 17:20:53 +0100 |
commit | 8188bc8a37e790fd2f051c2714c2a628d10c1c5e (patch) | |
tree | 18399ac2156175711a996e81ceebca4e16322533 /tools/libxl/libxl_paths.c | |
parent | d83eb7f21e37956c1674481b56f0c9181d493304 (diff) | |
download | xen-8188bc8a37e790fd2f051c2714c2a628d10c1c5e.tar.gz xen-8188bc8a37e790fd2f051c2714c2a628d10c1c5e.tar.bz2 xen-8188bc8a37e790fd2f051c2714c2a628d10c1c5e.zip |
tools/libxl: compile with -Wmissing-declarations
Since the recent build error caused by mismatch of symbol types due to
missing declarations, build libxl with -Wmissing-declarations.
The patch is mostly straightforward, a one liner in the makefile enables
the flag, a lot of functions in xl_cmdimpl.c needed to be made static
and libxl_paths.c needed to include libxl.h.
The one wart on the patch-set is that flex has a bug where it emits code
with missing declarations for yy(set|get)_column. This can be worked
around by providing the declarations ourselves regardless.
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_paths.c')
-rw-r--r-- | tools/libxl/libxl_paths.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_paths.c b/tools/libxl/libxl_paths.c index ceb1d73265..b9783d7c20 100644 --- a/tools/libxl/libxl_paths.c +++ b/tools/libxl/libxl_paths.c @@ -12,6 +12,7 @@ * GNU Lesser General Public License for more details. */ +#include "libxl.h" #include "_libxl_paths.h" const char *libxl_sbindir_path(void) |