diff options
Diffstat (limited to 'meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch')
-rw-r--r-- | meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch b/meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch deleted file mode 100644 index 0561ed7d32..0000000000 --- a/meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | From f6245ef5530fc37a6243e798df34162fbbeab6f0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Sun, 19 Feb 2017 23:32:46 -0800 | ||
4 | Subject: [PATCH] cr-statement.c/timsort.h: fix formatting issues | ||
5 | |||
6 | Fixed when compile with "-Wformat -Wformat-security -Werror=format-security": | ||
7 | | gettext-tools/gnulib-lib/libcroco/cr-statement.c: In function 'cr_statement_dump_charset': | ||
8 | | gettext-tools/gnulib-lib/libcroco/cr-statement.c:2661:17: error: format not a string literal and no format arguments [-Werror=format-security] | ||
9 | | fprintf (a_fp, str) ; | ||
10 | |||
11 | And: | ||
12 | gettext-tools/gnulib-lib/libxml/timsort.h:326:80: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=] | ||
13 | fprintf(stderr, "Error allocating temporary storage for tim sort: need %lu bytes", sizeof(SORT_TYPE) * new_size); | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | |||
17 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
18 | |||
19 | --- | ||
20 | libtextstyle/lib/libcroco/cr-statement.c | 10 +++++----- | ||
21 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
22 | |||
23 | diff --git a/libtextstyle/lib/libcroco/cr-statement.c b/libtextstyle/lib/libcroco/cr-statement.c | ||
24 | index 617520f..100104b 100644 | ||
25 | --- a/libtextstyle/lib/libcroco/cr-statement.c | ||
26 | +++ b/libtextstyle/lib/libcroco/cr-statement.c | ||
27 | @@ -2607,7 +2607,7 @@ cr_statement_dump_ruleset (CRStatement * a_this, FILE * a_fp, glong a_indent) | ||
28 | g_return_if_fail (a_fp && a_this); | ||
29 | str = cr_statement_ruleset_to_string (a_this, a_indent); | ||
30 | if (str) { | ||
31 | - fprintf (a_fp, str); | ||
32 | + fprintf (a_fp, "%s", str); | ||
33 | g_free (str); | ||
34 | str = NULL; | ||
35 | } | ||
36 | @@ -2658,7 +2658,7 @@ cr_statement_dump_charset (CRStatement * a_this, FILE * a_fp, gulong a_indent) | ||
37 | str = cr_statement_charset_to_string (a_this, | ||
38 | a_indent) ; | ||
39 | if (str) { | ||
40 | - fprintf (a_fp, str) ; | ||
41 | + fprintf (a_fp, "%s", str) ; | ||
42 | g_free (str) ; | ||
43 | str = NULL ; | ||
44 | } | ||
45 | @@ -2685,7 +2685,7 @@ cr_statement_dump_page (CRStatement * a_this, FILE * a_fp, gulong a_indent) | ||
46 | |||
47 | str = cr_statement_at_page_rule_to_string (a_this, a_indent) ; | ||
48 | if (str) { | ||
49 | - fprintf (a_fp, str); | ||
50 | + fprintf (a_fp, "%s", str); | ||
51 | g_free (str) ; | ||
52 | str = NULL ; | ||
53 | } | ||
54 | @@ -2711,7 +2711,7 @@ cr_statement_dump_media_rule (CRStatement * a_this, | ||
55 | |||
56 | str = cr_statement_media_rule_to_string (a_this, a_indent) ; | ||
57 | if (str) { | ||
58 | - fprintf (a_fp, str) ; | ||
59 | + fprintf (a_fp, "%s", str) ; | ||
60 | g_free (str) ; | ||
61 | str = NULL ; | ||
62 | } | ||
63 | @@ -2737,7 +2737,7 @@ cr_statement_dump_import_rule (CRStatement * a_this, FILE * a_fp, | ||
64 | |||
65 | str = cr_statement_import_rule_to_string (a_this, a_indent) ; | ||
66 | if (str) { | ||
67 | - fprintf (a_fp, str) ; | ||
68 | + fprintf (a_fp, "%s", str) ; | ||
69 | g_free (str) ; | ||
70 | str = NULL ; | ||
71 | } | ||