Commit Graph

10393 Commits

Author SHA1 Message Date
drochner 0fa7059102 define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
drochner 3f2cf355d3 if YY_NO_INPUT is defined, disable not only the declaration but also
the definition of yyinput(), avoids compiler warnings with newer gcc.
from Kurt J. Lidl per PR misc/41160, with a minor change to make it
generate paired #directives in the "-+", ie c++, case
2009-04-20 16:01:17 +00:00
tsutsui e7f34be0d2 Fix another -Wsign-compare issue.
XXX: is it really worth to keep non native aout/coff/ecoff support here?
2009-04-18 11:30:30 +00:00
dogcow 7aaa51f5d6 Fix sign/unsigned and discards qualifiers. Based on patch by mlelstv. 2009-04-18 10:12:42 +00:00
mlelstv 333d9d13b5 avoid compiler warnings about shadowed declarations. 2009-04-18 09:04:34 +00:00
lukem efa035ed26 Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:24:05 +00:00
lukem d96ab870e3 Attempt to fix previous to address a coredump. 2009-04-18 03:25:34 +00:00
dyoung f853fb7538 Rename variables to fix GCC warnings: local variables optopt and optarg
shadow globals.
2009-04-17 20:25:08 +00:00
apb 7097476cb5 Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
2009-04-17 06:09:08 +00:00
tron 80ab5902d9 Fix build problem on big endian ports where ntohl() doesn't convert the
argument to "uint32_t" automatically.
2009-04-16 13:52:52 +00:00
jld d61104a0f0 Another empty-body warning/error, another set of curly braces. This, and
the last one, appear to affect only the NO_DEBUG (e.g., SMALLPROG) build.
2009-04-15 04:19:39 +00:00
jld 882877eb33 Unbreak the build by adding curly braces to placate the empty-body warning. 2009-04-15 03:42:33 +00:00
dogcow 85e7c15ca3 more signed/unsigned comparison fixes 2009-04-15 02:07:20 +00:00
christos 7f812cd511 Lukemify (WARNS=4) 2009-04-15 01:20:57 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem 9a472d38d4 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 22:03:07 +00:00
lukem 238e973f29 Fix sign-compare issues 2009-04-14 10:11:28 +00:00
lukem 38a78fe6fc Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 09:55:07 +00:00
lukem ee76095327 Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
lukem 3abdd2c250 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 09:41:30 +00:00
lukem 17d35bfb59 Fix WARNS=4 (-Wcast-qual).
Fix creation of tempfile
2009-04-14 09:18:41 +00:00
lukem ae780f8105 Compile lint with WARNS=3.
Currently there are too many -Wsign-compare issues for WARNS=4.
2009-04-14 09:09:59 +00:00
lukem e54a1dbe60 fix -Wcast-qual issues 2009-04-14 09:08:39 +00:00
lukem 4bfb0e2161 Fix -Wshadow and -Wcast-qual issues 2009-04-14 09:06:25 +00:00
lukem 4c61b31086 Fix -Wshadow issues 2009-04-14 09:03:45 +00:00
lukem 4c213f3e71 Fix -Wcast-qual issue 2009-04-14 08:59:45 +00:00
lukem 240747d69a Fix -Wshadow -Wcast-qual issues 2009-04-14 08:54:59 +00:00
lukem 91387bb4e5 Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare) 2009-04-14 08:50:06 +00:00
lukem 8c812af3cf fix -Wcast-qual issues 2009-04-14 08:00:48 +00:00
lukem 44f6d24c7f fix sign-compare issue 2009-04-14 07:59:17 +00:00
lukem 147c0c7b01 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 07:58:38 +00:00
lukem a4b11de136 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 07:54:51 +00:00
lukem 84a2852424 Fix -Wcast-qual issue 2009-04-14 07:41:36 +00:00
lukem c53da74354 Fix WARNS=4 issues 2009-04-14 07:37:31 +00:00
lukem 19ffb16ab2 Fix another sign-compare issue 2009-04-14 07:36:16 +00:00
lukem 49d68c2eee fix sign-compare issues 2009-04-14 07:28:23 +00:00
lukem 14b71bc9c5 Fix -Wcast-qual issue 2009-04-14 06:16:59 +00:00
lukem 23ed38873e fix sign-compare issues 2009-04-14 06:14:10 +00:00
lukem 95f5c18e58 Appease -Wcast-qual with a liberal sprinkling of const. 2009-04-14 05:55:12 +00:00
lukem f76ec3edcf Fix -Wcast-qual issues 2009-04-14 05:46:25 +00:00
lukem 910d676151 Fix WARNS=4 issues (-Wcast-qual, -Wsign-compare) 2009-04-14 05:45:23 +00:00
lukem 7acf67f489 Fix WARNS=4 (-Wcast-qual -Wextra) 2009-04-13 23:50:49 +00:00
lukem 82983c1c4b Fix -Wcast-qual issues 2009-04-13 23:45:50 +00:00
lukem 2b7977aec7 Fix -Wcast-qual issue 2009-04-13 23:44:49 +00:00
lukem c2293a6fbf Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wextra) 2009-04-13 23:43:36 +00:00
lukem 0980aab530 Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare)
XXX: need a "cleaner" way to do the check in reverse.c, as a general rule
2009-04-13 23:33:25 +00:00
lukem e7a39c4fb6 Fix -Wsign-compare issues 2009-04-13 23:20:27 +00:00
lukem b33c816619 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 23:02:36 +00:00
christos 3f7bbc73e3 since we know the types, print what they are in error messages. 2009-04-13 21:17:37 +00:00
christos 1841106bd7 Allow kdump to be used as an ioctl decoder if invoked as ioctlname. 2009-04-13 14:39:23 +00:00