Subject: ANSI C warning from sys/arch/sparc/include/lock.h
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 05/03/2005 15:27:40
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


-- 
						Greg A. Woods

H:+1 416 218-0098  W:+1 416 489-5852 x122  VE3TCP  RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>