aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 22:01:20 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 22:01:20 +0300
commit8b211a0a3b87999ffe38d03ba1e01639bfc05db0 (patch)
tree18b1c67cc5e3b456ae42d994ad15d86cdf3b0dbe
parent562561640d54159d5dc6313e3f77ea8f52f24b39 (diff)
downloadnasm-8b211a0a3b87999ffe38d03ba1e01639bfc05db0.tar.gz
nasm-8b211a0a3b87999ffe38d03ba1e01639bfc05db0.tar.xz
nasm-8b211a0a3b87999ffe38d03ba1e01639bfc05db0.zip
aclocal.m4: Use Werror in PA_CHECK_FALLTHROUGH_ATTRIBUTE
In sake of https://bugzilla.nasm.us/show_bug.cgi?id=3392465 Suggested-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--aclocal.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 43649e70..eab5dee8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -205,6 +205,7 @@ dnl PA_CHECK_FALLTHROUGH_ATTRIBUTE
dnl --------------------------------------------------------------------------
AC_DEFUN(PA_CHECK_FALLTHROUGH_ATTRIBUTE,
[AC_MSG_CHECKING([if $CC supports fallthrough attribute])
+ CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
AC_INCLUDES_DEFAULT
int main(int argc, char **argv)