diff --git a/usr.bin/objformat/Makefile b/usr.bin/objformat/Makefile index 813f324bb391..571beb506b4f 100644 --- a/usr.bin/objformat/Makefile +++ b/usr.bin/objformat/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= objformat -CFLAGS+= -Wall +WARNS?= 2 NOSHARED?= YES LINKS+= ${BINDIR}/objformat ${BINDIR}/addr2line diff --git a/usr.bin/objformat/objformat.c b/usr.bin/objformat/objformat.c index 8d75f5ea64ae..3e9e4101d0e5 100644 --- a/usr.bin/objformat/objformat.c +++ b/usr.bin/objformat/objformat.c @@ -39,7 +39,7 @@ main(int argc, char **argv) char objformat[32]; char *path, *chunk; char *cmd, *newcmd = NULL; - char *objformat_path; + const char *objformat_path; if (getobjformat(objformat, sizeof objformat, &argc, argv) == -1) errx(1, "Invalid object format");