summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch')
-rw-r--r--meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch b/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch
new file mode 100644
index 0000000000..d40a3b1ef9
--- /dev/null
+++ b/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch
@@ -0,0 +1,32 @@
1From 337799e40350b3db2441cc98f65ec36a74dfb356 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 21 Apr 2017 12:18:08 -0700
4Subject: [PATCH] Use -Wno-error=format-overflow= if the compiler supports it
5
6we need this warning to be suppressed with gcc7+
7however older compilers dont support it so we need
8a way to disble it only if compiler supports it
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 configure.ac | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index 3a38c95..bb9035e 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -42,7 +42,7 @@ fi
22 if test "x$GCC" = "xyes"; then
23 AC_MSG_CHECKING([for usable gcc warning flags])
24 gccwarningflags=
25- for flag in -Wall -Werror -std=c89 -pedantic; do
26+ for flag in -Wall -Werror -std=c89 -pedantic -Wno-error=format-overflow=; do
27 ac_save_CFLAGS="$CFLAGS"
28 ac_save_LIBS="$LIBS"
29 CFLAGS="$CFLAGS$gccwarningflags $flag $GTK_CFLAGS"
30--
312.12.2
32