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/misc | |
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/misc')
-rw-r--r-- | tools/misc/lomount/lomount.c | 2 | ||||
-rw-r--r-- | tools/misc/mbootpack/Makefile | 2 | ||||
-rw-r--r-- | tools/misc/xc_shadow.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/misc/lomount/lomount.c b/tools/misc/lomount/lomount.c index b72f77da03..85e5f3b584 100644 --- a/tools/misc/lomount/lomount.c +++ b/tools/misc/lomount/lomount.c @@ -195,7 +195,7 @@ done: return fail; } -void usage() +void usage(void) { fprintf(stderr, "You must specify at least -diskimage and -partition.\n"); fprintf(stderr, "All other arguments are passed through to 'mount'.\n"); diff --git a/tools/misc/mbootpack/Makefile b/tools/misc/mbootpack/Makefile index 3c6791e4ee..d1e3334bf7 100644 --- a/tools/misc/mbootpack/Makefile +++ b/tools/misc/mbootpack/Makefile @@ -31,7 +31,7 @@ DEPFLAGS = -Wp,-MD,.$(@F).d DEPS = .*.d mbootpack: $(OBJS) - $(HOSTCC) -o $@ $(filter-out %.a, $^) $(LDFLAGS) + $(HOSTCC) -o $@ $(filter-out %.a, $^) clean: $(RM) mbootpack *.o $(DEPS) bootsect setup bzimage_header.c bin2c diff --git a/tools/misc/xc_shadow.c b/tools/misc/xc_shadow.c index 20363637bf..83c52ebc19 100644 --- a/tools/misc/xc_shadow.c +++ b/tools/misc/xc_shadow.c @@ -18,7 +18,7 @@ #include <errno.h> #include <string.h> -void usage() +void usage(void) { printf("xc_shadow: -[0|1|2]\n"); printf(" set shadow mode\n"); @@ -28,7 +28,7 @@ void usage() int main(int argc, char *argv[]) { int xc_handle; - int mode; + int mode = 0; if ( argc > 1 ) { |