2018-10-25 12:49:12 +02:00
|
|
|
commit 6bc135ffb198d601e9c4e3be615f13a98640610b
|
2018-06-25 08:25:36 +02:00
|
|
|
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
|
|
Date: Wed Aug 9 17:31:57 2017 +0200
|
|
|
|
|
|
|
|
Fix gcc7 and gcc8
|
|
|
|
|
|
|
|
Fix compilation errors for GCC7 and GCC8
|
|
|
|
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
|
|
|
|
|
|
diff --git configure.ac configure.ac
|
2018-10-25 12:49:12 +02:00
|
|
|
index 5a410606edcc..d76f6ae6df43 100644
|
2018-06-25 08:25:36 +02:00
|
|
|
--- configure.ac
|
|
|
|
+++ configure.ac
|
2018-10-25 12:49:12 +02:00
|
|
|
@@ -164,14 +164,15 @@ AS_IF([test "x$enable_dynamic_ld" = "xyes"], [
|
2018-06-25 08:25:36 +02:00
|
|
|
])
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Werror -DMST_UL"
|
|
|
|
+CPPFLAGS="$CPPFLAGS -DMST_UL"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Werror -DMST_UL"
|
|
|
|
|
|
|
|
AC_CONFIG_FILES( mstflint.spec )
|
|
|
|
|
2018-10-25 12:49:12 +02:00
|
|
|
# C related ignores
|
2018-06-25 08:25:36 +02:00
|
|
|
-AX_CHECK_COMPILE_FLAG([-Wno-format-overflow], [CFLAGS="$CFLAGS -Wno-format-overflow"], [], [])
|
|
|
|
-AX_CHECK_COMPILE_FLAG([-Wno-implicit-fallthrough], [CFLAGS="$CFLAGS -Wno-implicit-fallthrough"], [], [])
|
2018-10-25 12:49:12 +02:00
|
|
|
-AX_CHECK_COMPILE_FLAG([-Wno-cast-function-type], [CFLAGS="$CFLAGS -Wno-cast-function-type"], [], [])
|
|
|
|
+AX_CHECK_COMPILE_FLAG([-Wno-format-overflow], [CPPFLAGS="$CPPFLAGS -Wno-format-overflow"], [], [])
|
|
|
|
+AX_CHECK_COMPILE_FLAG([-Wno-implicit-fallthrough], [CPPFLAGS="$CPPFLAGS -Wno-implicit-fallthrough"], [], [])
|
|
|
|
+AX_CHECK_COMPILE_FLAG([-Wno-cast-function-type], [CPPFLAGS="$CPPFLAGS -Wno-cast-function-type"], [], [])
|
2018-06-25 08:25:36 +02:00
|
|
|
|
2018-10-25 12:49:12 +02:00
|
|
|
# C++ related ignores
|
|
|
|
AC_LANG_PUSH([C++])
|