Subject: Kernel warnings/cflags
To: None <port-macppc@netbsd.org>
From: None <jchacon@genuity.net>
List: port-macppc
Date: 04/29/2001 06:27:00
Can anyone think of a reason to not change CWARNFLAGS to

-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes

instead of

 -Werror -Wreturn-type -Wpointer-arith

which is all that's there today.

The files so far that broke were bus.h and a few misc ones which either
didn't have proper prototyping in scope or in some cases weren't using
prototypes. bus.h broke because the definitions for the bus_* functions were
all done in K&R style. That's a quick fix.

The main reason here is to catch prototype errors and type promotions/etc
that -Wall pulls in. Plus a quick scan of the other port's shows the above
options to be more inline with any idea of a standard option set across
ports. Hell..the fact that my testing showed possible prototyping/scoping
problems tells me this should be there. I've found a few actual bugs so this
does seem important to have.

Barring any serious objections I'll check in changes this week to fix this.

James