Mail Archives: djgpp-workers/1998/07/08/00:58:46
Burton Radons wrote:
>
> This patch of the src/posix/regex directory performs all changes
> necessary to compile with -W -Wall -Wno-unused (My standard warning
> set). I didn't change anything that wasn't necessary, to avoid
> enbuggery.
Oh dear. Hate to break it to you, but I did the same thing, only to
discover that those aren't the options that are relevant. The real ones
that it compiles with are:
-Wall
-Wbad-function-cast
-Wcast-qual
-Werror
-Wmissing-declarations
-Wmissing-prototypes
-Wpointer-arith
-Wshadow
-Wstrict-prototypes
-Wtraditional
-Wwrite-strings
-Wtraditional is a particular annoyance, since it seems there's some
difference in the type of a numeric constant between K&R and ANSI C. I
don't know the details, but I suspect it will mean adding `U's to a lot
of numbers.
Btw, this doesn't *have* to be done; there's a perfectly good way, via
the Makefile, to just make GCC shut up.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -