From ee3181aeefd0d955412f0faeb96874156877a134 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 8 May 2007 20:59:37 +0000 Subject: [PATCH] Fix some warnings and raise WARNS to 6. --- usr.bin/objformat/Makefile | 5 +++-- usr.bin/objformat/objformat.c | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/usr.bin/objformat/Makefile b/usr.bin/objformat/Makefile index 99d3853b8f..2562850bf4 100644 --- a/usr.bin/objformat/Makefile +++ b/usr.bin/objformat/Makefile @@ -1,9 +1,10 @@ # $FreeBSD: src/usr.bin/objformat/Makefile,v 1.15 1999/12/24 15:18:19 green Exp $ -# $DragonFly: src/usr.bin/objformat/Makefile,v 1.9 2005/12/21 16:43:17 joerg Exp $ +# $DragonFly: src/usr.bin/objformat/Makefile,v 1.10 2007/05/08 20:59:37 swildner Exp $ PROG= objformat -CFLAGS+= -Wall NOSHARED?= YES +WARNS?= 6 + .if defined(TARGET_ARCH) CFLAGS+= -DTARGET_ARCH="${TARGET_ARCH}" .endif diff --git a/usr.bin/objformat/objformat.c b/usr.bin/objformat/objformat.c index 1c3b245714..44187d7ef3 100644 --- a/usr.bin/objformat/objformat.c +++ b/usr.bin/objformat/objformat.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/usr.bin/objformat/objformat.c,v 1.6 1998/10/24 02:01:30 jdp Exp $ - * $DragonFly: src/usr.bin/objformat/objformat.c,v 1.20 2007/04/13 12:26:56 corecode Exp $ + * $DragonFly: src/usr.bin/objformat/objformat.c,v 1.21 2007/05/08 20:59:37 swildner Exp $ */ #include @@ -90,9 +90,9 @@ main(int argc, char **argv) char objformat[32]; char *path, *chunk; char *cmd, *newcmd = NULL; - char *objformat_path; - char *ccver; - char *buver; + const char *objformat_path; + const char *ccver; + const char *buver; const char *env_value = NULL; const char *base_path = NULL; int use_objformat = 0; -- 2.41.0