From cfd56ebb81fee0d310b2bc673625fca53536a4e0 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 6 Mar 2016 21:44:14 -0800 Subject: [PATCH] configure.in: disable -Wwrite-strings for now At the moment, NASM is not clean with -Wwrite-strings due to passing string constants to functions that under some conditions modify their arguments. This is problematic if nothing else for guaranteeing correctness, but will take some work to remedy. In the meantime, disable -Wwrite-strings. Signed-off-by: H. Peter Anvin --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 82602c78..b7057c92 100644 --- a/configure.in +++ b/configure.in @@ -193,7 +193,7 @@ dnl Suppress format warning on Windows targets due to their PA_ADD_CFLAGS([-Wpedantic-ms-format],[-Wno-pedantic-ms-format]) PA_ADD_CFLAGS([-Wc90-c99-compat]) PA_ADD_CFLAGS([-Wlong-long],[-Wno-long-long]) -PA_ADD_CFLAGS([-Wwrite-strings]) +dnl PA_ADD_CFLAGS([-Wwrite-strings]) AC_ARG_ENABLE([werror], [AC_HELP_STRING([--enable-werror], [compile with -Werror to error out on any warning])],