summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch')
-rw-r--r--recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch b/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch
new file mode 100644
index 0000000..b5a6413
--- /dev/null
+++ b/recipes-devtools/m4/m4/0001-freeze-fix-compilation-error-with-security-flags-ena.patch
@@ -0,0 +1,35 @@
1From 5f07971ef7f087500f19beb778ff1c8fb176d76d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <adraszik@tycoint.com>
3Date: Thu, 23 Mar 2017 12:23:24 +0000
4Subject: [PATCH 1/2] freeze: fix compilation error with security flags enabled
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9| ../../m4-1.4.9/src/freeze.c: In function 'produce_frozen_state':
10| ../../m4-1.4.9/src/freeze.c:61:7: error: format not a string literal and no format arguments [-Werror=format-security]
11| M4ERROR ((warning_status, errno, name));
12| ^~~~~~~
13
14Upstream-Status: Inappropriate [required for m4 1.4.9 (GPLv2) recipe only]
15Signed-off-by: André Draszik <adraszik@tycoint.com>
16---
17 src/freeze.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/freeze.c b/src/freeze.c
21index 7b8a7bc..eebcc59 100644
22--- a/src/freeze.c
23+++ b/src/freeze.c
24@@ -58,7 +58,7 @@ produce_frozen_state (const char *name)
25
26 if (file = fopen (name, O_BINARY ? "wb" : "w"), !file)
27 {
28- M4ERROR ((warning_status, errno, name));
29+ M4ERROR ((warning_status, errno, "fopen failed: %s", name));
30 return;
31 }
32
33--
342.11.0
35