diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch | 32 | ||||
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_git.bb | 3 |
2 files changed, 34 insertions, 1 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 @@ | |||
1 | From 337799e40350b3db2441cc98f65ec36a74dfb356 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 21 Apr 2017 12:18:08 -0700 | ||
4 | Subject: [PATCH] Use -Wno-error=format-overflow= if the compiler supports it | ||
5 | |||
6 | we need this warning to be suppressed with gcc7+ | ||
7 | however older compilers dont support it so we need | ||
8 | a way to disble it only if compiler supports it | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | configure.ac | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index 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 | -- | ||
31 | 2.12.2 | ||
32 | |||
diff --git a/meta/recipes-sato/puzzles/puzzles_git.bb b/meta/recipes-sato/puzzles/puzzles_git.bb index a25c00760a..7b8495ff75 100644 --- a/meta/recipes-sato/puzzles/puzzles_git.bb +++ b/meta/recipes-sato/puzzles/puzzles_git.bb | |||
@@ -14,7 +14,8 @@ SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ | |||
14 | file://0001-Use-labs-instead-of-abs.patch \ | 14 | file://0001-Use-labs-instead-of-abs.patch \ |
15 | file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ | 15 | file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ |
16 | file://0001-Clarify-conditions-to-avoid-compiler-errors.patch \ | 16 | file://0001-Clarify-conditions-to-avoid-compiler-errors.patch \ |
17 | " | 17 | file://0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch \ |
18 | " | ||
18 | SRCREV = "8dfe5cec31e784e4ece2955ecc8cc35ee7e8fbb3" | 19 | SRCREV = "8dfe5cec31e784e4ece2955ecc8cc35ee7e8fbb3" |
19 | PE = "1" | 20 | PE = "1" |
20 | PV = "0.0+git${SRCPV}" | 21 | PV = "0.0+git${SRCPV}" |