Subject: Re: ANSI C warning from sys/arch/sparc/include/lock.h
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@tac.gw.com>
List: tech-userlevel
Date: 05/03/2005 16:21:58
In article <m1DT33U-0024gmC@building.weird.com>,
Greg A. Woods <tech-userlevel@NetBSD.ORG> wrote:
>I've never really noticed this before, but here it is now in light of
>the recent re-ignition of the discussion about supporting other
>compilers, at least for userland (which I too would really appreciate!):
>
>        gcc -g -O2 -pipe -pedantic -W -Wall -Wshadow -Wswitch
>-Wreturn-type -Wpointer-arith -Wconversion -Wimplicit
>-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
>-Wcast-qual -Wno-format-extra-args -c spool.c
>In file included from /usr/include/sys/lock.h:91,
>                 from /usr/include/sys/mount.h:48,
>                 from spool.c:81:
>/usr/include/machine/lock.h: In function `__cpu_simple_lock':
>/usr/include/machine/lock.h:100: warning: ANSI C forbids braced-groups
>within expressions
>/usr/include/machine/lock.h: In function `__cpu_simple_lock_try':
>/usr/include/machine/lock.h:110: warning: ANSI C forbids braced-groups
>within expressions
>

Which compiler is that and what versio of lock.h?

christos