Subject: Compiling an kernel with egcs?
To: None <current-users@NetBSD.ORG>
From: Bernd Ernesti <>
List: current-users
Date: 04/12/1998 21:06:12

I tried to compile an i386 kernel with egcs and got this error:

cc -g -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I/src/sys/arch -I/src/sys -nostdinc [..] -Di386  -c /src/sys/kern/init_main.c
cc1: warnings being treated as errors
/src/sys/kern/init_main.c:169: warning: return type of `main' is not `int'
*** Error code 1


I know that egcs (gcc 2.8) has now a warning about the return type of main,
but how do I disable this warning during an kernel build (I don't want to
remove -Werror)?