mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-21 07:15:49 +00:00
test-includes: Add -ansi to the compile line to catch problems
We support C89 files, but compile everything in the tree with C99 or newer. By compiling these -ansi, that will force C89 which doesn't understand inline. All our header files must use __inline instead of inline when they define inline functions. Sponsored by: Netflix Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43235
This commit is contained in:
parent
39e39ba056
commit
259e6fefc0
@ -22,6 +22,10 @@ NO_PIC= yes
|
||||
# Some files have to be clean for extra defines too...
|
||||
CFLAGS.event.c= -D_WANT_KEVENT32 -D_WANT_FREEBSD11_KEVENT
|
||||
|
||||
# We currently support C89 and newer compilers. Catch the odd little fussy
|
||||
# details like __inline that the header files must follow to support C89.
|
||||
CFLAGS+=-ansi
|
||||
|
||||
.include "badfiles.inc"
|
||||
|
||||
.for h c in ${HDRS:@x@$x ${x:S,/,_,g:R}.c@}
|
||||
|
Loading…
Reference in New Issue
Block a user