diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-10 17:32:04 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-10 17:32:04 +0100 |
commit | 945758df892447c3c0cf9c6ba4cd6b2cc83da42b (patch) | |
tree | 8072d5ac3c907f5d617574fd9a7d75883bfe31b3 /tools/xenstat | |
parent | 27d7304ed79a09ab0fbf14269154a4a46a20e170 (diff) | |
download | xen-945758df892447c3c0cf9c6ba4cd6b2cc83da42b.tar.gz xen-945758df892447c3c0cf9c6ba4cd6b2cc83da42b.tar.bz2 xen-945758df892447c3c0cf9c6ba4cd6b2cc83da42b.zip |
More build config changes:
- Build -O2 rather than -O3
- Build with -Wstrict-prototypes
- Move target-specific generic compiler switches to Config.mk
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r-- | tools/xenstat/libxenstat/Makefile | 2 | ||||
-rw-r--r-- | tools/xenstat/libxenstat/src/xen-interface.c | 2 | ||||
-rw-r--r-- | tools/xenstat/libxenstat/src/xen-interface.h | 2 | ||||
-rw-r--r-- | tools/xenstat/libxenstat/src/xenstat.c | 2 | ||||
-rw-r--r-- | tools/xenstat/libxenstat/src/xenstat.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tools/xenstat/libxenstat/Makefile b/tools/xenstat/libxenstat/Makefile index d874ba3af1..52832017ff 100644 --- a/tools/xenstat/libxenstat/Makefile +++ b/tools/xenstat/libxenstat/Makefile @@ -48,7 +48,7 @@ $(LIB): $(OBJECTS) $(RANLIB) $@ $(SHLIB): $(OBJECTS) - $(CC) $(LDFLAGS) $(SONAME_FLAGS) -shared -o $@ $(OBJECTS) + $(CC) $(CFLAGS) $(LDFLAGS) $(SONAME_FLAGS) -shared -o $@ $(OBJECTS) src/xenstat.o: src/xenstat.c src/xenstat.h src/xen-interface.h $(CC) $(CFLAGS) $(WARN_FLAGS) -c -o $@ $< diff --git a/tools/xenstat/libxenstat/src/xen-interface.c b/tools/xenstat/libxenstat/src/xen-interface.c index 6b6fa6b9fb..59723157ad 100644 --- a/tools/xenstat/libxenstat/src/xen-interface.c +++ b/tools/xenstat/libxenstat/src/xen-interface.c @@ -31,7 +31,7 @@ struct xi_handle { /* Initialize for xen-interface. Returns a handle to be used with subsequent * calls to the xen-interface functions or NULL if an error occurs. */ -xi_handle *xi_init() +xi_handle *xi_init(void) { xi_handle *handle; diff --git a/tools/xenstat/libxenstat/src/xen-interface.h b/tools/xenstat/libxenstat/src/xen-interface.h index c1e74edcd6..fc7119ae34 100644 --- a/tools/xenstat/libxenstat/src/xen-interface.h +++ b/tools/xenstat/libxenstat/src/xen-interface.h @@ -26,7 +26,7 @@ typedef struct xi_handle xi_handle; /* Initialize for xen-interface. Returns a handle to be used with subsequent * calls to the xen-interface functions or NULL if an error occurs. */ -xi_handle *xi_init(); +xi_handle *xi_init(void); /* Release the handle to libxc, free resources, etc. */ void xi_uninit(xi_handle *handle); diff --git a/tools/xenstat/libxenstat/src/xenstat.c b/tools/xenstat/libxenstat/src/xenstat.c index e8a6928dac..3332f2cad7 100644 --- a/tools/xenstat/libxenstat/src/xenstat.c +++ b/tools/xenstat/libxenstat/src/xenstat.c @@ -129,7 +129,7 @@ static xenstat_collector collectors[] = { /* * libxenstat API */ -xenstat_handle *xenstat_init() +xenstat_handle *xenstat_init(void) { xenstat_handle *handle; diff --git a/tools/xenstat/libxenstat/src/xenstat.h b/tools/xenstat/libxenstat/src/xenstat.h index b9ac1d3782..90676e8763 100644 --- a/tools/xenstat/libxenstat/src/xenstat.h +++ b/tools/xenstat/libxenstat/src/xenstat.h @@ -26,7 +26,7 @@ typedef struct xenstat_network xenstat_network; /* Initialize the xenstat library. Returns a handle to be used with * subsequent calls to the xenstat library, or NULL if an error occurs. */ -xenstat_handle *xenstat_init(); +xenstat_handle *xenstat_init(void); /* Release the handle to libxc, free resources, etc. */ void xenstat_uninit(xenstat_handle * handle); |