diff options
Diffstat (limited to 'meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch')
-rw-r--r-- | meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch b/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch deleted file mode 100644 index 4ee7543166..0000000000 --- a/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
2 | |||
3 | gtk.c: fix compiling failure with option -g -O | ||
4 | |||
5 | There was a compile failure with option -g -O | ||
6 | ... | ||
7 | ././gtk.c: In function 'main': | ||
8 | ././gtk.c:2911:6: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized] | ||
9 | fprintf(stderr, "%s: %s\n", pname, error); | ||
10 | ^ | ||
11 | cc1: all warnings being treated as errors | ||
12 | ... | ||
13 | |||
14 | Fix by initializing pointer 'error' with NULL | ||
15 | |||
16 | Upstream-Status: Submitted [email discussion with upstream] | ||
17 | |||
18 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
19 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
20 | |||
21 | Index: git/gtk.c | ||
22 | =================================================================== | ||
23 | --- git.orig/gtk.c | ||
24 | +++ git/gtk.c | ||
25 | @@ -3578,7 +3578,7 @@ static void list_presets_from_menu(struc | ||
26 | int main(int argc, char **argv) | ||
27 | { | ||
28 | char *pname = argv[0]; | ||
29 | - char *error; | ||
30 | + char *error = NULL; | ||
31 | int ngenerate = 0, px = 1, py = 1; | ||
32 | bool print = false; | ||
33 | bool time_generation = false, test_solve = false, list_presets = false; | ||