projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
140f2ab
)
Add -Werror after all autoconf checks.
author
Taylor R Campbell
<campbell@mumble.net>
Wed, 7 Nov 2018 16:27:44 +0000
(16:27 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Wed, 7 Nov 2018 16:27:45 +0000
(16:27 +0000)
If we do it before, the autoconf checks -- which are full of compiler
warnings -- all fail.
src/microcode/configure.ac
patch
|
blob
|
history
diff --git
a/src/microcode/configure.ac
b/src/microcode/configure.ac
index 337c9ea963bf53d48cd7fcaa2c0bddf2d7853296..31fd4af504eb83154977a6a9a85c7c538958ec8f 100644
(file)
--- a/
src/microcode/configure.ac
+++ b/
src/microcode/configure.ac
@@
-210,6
+210,7
@@
if test ${GCC} = yes; then
fi
CFLAGS="-Wall -Wundef -Wpointer-arith -Winline ${CFLAGS}"
CFLAGS="-Wstrict-prototypes -Wnested-externs -Wredundant-decls ${CFLAGS}"
+ CFLAGS_WERROR=-Werror
AC_MSG_CHECKING([for GCC>=4])
AC_COMPILE_IFELSE(
@@
-861,6
+862,8
@@
for base in ${OPTIONAL_BASES}; do
OPTIONAL_OBJECTS="${OPTIONAL_OBJECTS} ${base}.o"
done
+CFLAGS="${CFLAGS} ${CFLAGS_WERROR}"
+
AC_SUBST([AS_FLAGS])
AC_SUBST([GC_HEAD_FILES])
AC_SUBST([M4_FLAGS])