I thought this was fixed but I still get errors.
# compile ALL/sb_pnpbios.o
/usr/src/obj.i386/tooldir.NetBSD-4.99.55-i386/bin/i386--netbsdelf-gcc
-ffreestanding -fno-zero-initialized-in-bss -g -O2 -std=gnu99 -Werror
-Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
-Wextra -Wno-unused-parameter -fno-strict-aliasing -Werror -Wall
-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
-Wno-sign-compare -Wno-pointer-sign -Wno-attributes -Wextra
-Wno-unused-parameter -Werror -Di386 -I.
-I/usr/src/sys/contrib/dev/ath/netbsd -I/usr/src/sys/../common/include
-I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DPIC_DELAY
-DCONSDEVNAME="com" -DCONADDR=0x2f8 -DCONSPEED=57600 -DCONS_OVERRIDE
-DNO_TSC_TIME -DLKM -DDIAGNOSTIC -DDEBUG -DCOMPAT_NDIS
-DEXT2FS_SYSTEM_FLAGS -DACPICA_PEDANTIC -DPCIBIOS_LIBRETTO_FIXUP
-DPCIBIOS_SHARP_MM20_FIXUP -DRF_IN!
CLUDE_EVENODD=1 -DRF_INCLUDE_RAID5_RS=1 -DRF_INCLUDE_PARITYLOGGING=1
-DRF_INCLUDE_CHAINDECLUSTER=1 -DRF_INCLUDE_INTERDECLUSTER=1
-DRF_INCLUDE_PARITY_DECLUSTERING=1
-DRF_INCLUDE_PARITY_DECLUSTERING_DS=1 -DRND_COM -DMAXUSERS=32
-D_KERNEL -D_KERNEL_OPT
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
-I/usr/src/sys/../common/include -I/usr/src/sys/dist/pf
-I/usr/src/sys/dist/ipf -c /usr/src/sys/arch/i386/pnpbios/sb_pnpbios.c
cc1: warnings being treated as errors
/usr/src/sys/arch/i386/pnpbios/sb_pnpbios.c: In function
'sb_pnpbios_attach':
/usr/src/sys/arch/i386/pnpbios/sb_pnpbios.c:98: warning: implicit
declaration of function 'aprint_errpr'
/usr/src/sys/arch/i386/pnpbios/sb_pnpbios.c:109: error: too few
arguments to function 'sbmatch'
/usr/src/sys/arch/i386/pnpbios/sb_pnpbios.c:110: warning: too few
arguments for format