diff options
author | ed <ed@FreeBSD.org> | 2013-05-23 18:07:01 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2013-05-23 18:07:01 +0000 |
commit | 6f8795b5ab5d586e55f577d701d02f53a152f72f (patch) | |
tree | 5c31f57b6144f27fdaa91377b9d91aa0835b97f0 /usr.bin | |
parent | 4a88e6a5c9ffe63f647c893d01bd597820a03932 (diff) | |
download | FreeBSD-src-6f8795b5ab5d586e55f577d701d02f53a152f72f.zip FreeBSD-src-6f8795b5ab5d586e55f577d701d02f53a152f72f.tar.gz |
Let iconv build on -HEAD properly.
- Add NO_WMISSING_VARIABLE_DECLARATIONS where we use Yacc/Lex.
- Add variable declarations where possible.
- Add missing static keyword.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/iconv/iconv.c | 3 | ||||
-rw-r--r-- | usr.bin/mkcsmapper/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/mkesdb/Makefile | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/iconv/iconv.c b/usr.bin/iconv/iconv.c index 0da65a0..f7bd0a36 100644 --- a/usr.bin/iconv/iconv.c +++ b/usr.bin/iconv/iconv.c @@ -47,8 +47,7 @@ static void do_conv(FILE *, const char *, const char *, bool, bool); static int do_list(unsigned int, const char * const *, void *); static void usage(void); -struct option long_options[] = -{ +static struct option long_options[] = { {"from-code", required_argument, NULL, 'f'}, {"list", no_argument, NULL, 'l'}, {"silent", no_argument, NULL, 's'}, diff --git a/usr.bin/mkcsmapper/Makefile b/usr.bin/mkcsmapper/Makefile index 5d58a0c..6dbb0ec 100644 --- a/usr.bin/mkcsmapper/Makefile +++ b/usr.bin/mkcsmapper/Makefile @@ -5,5 +5,7 @@ PROG= mkcsmapper LDFLAGS+= -L${.CURDIR}/../../lib/libc +NO_WMISSING_VARIABLE_DECLARATIONS= + .include "${.CURDIR}/Makefile.inc" .include <bsd.prog.mk> diff --git a/usr.bin/mkesdb/Makefile b/usr.bin/mkesdb/Makefile index d4bd03f..69aed65 100644 --- a/usr.bin/mkesdb/Makefile +++ b/usr.bin/mkesdb/Makefile @@ -5,5 +5,7 @@ PROG= mkesdb LDFLAGS+= -L${.OBJDIR}/../../lib/libc +NO_WMISSING_VARIABLE_DECLARATIONS= + .include "${.CURDIR}/Makefile.inc" .include <bsd.prog.mk> |