summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch')
-rw-r--r--meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch b/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch
new file mode 100644
index 0000000000..d5c25ba08a
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch
@@ -0,0 +1,33 @@
1From 1375e2df75530cd198bd16ac3de38e2b0d126276 Mon Sep 17 00:00:00 2001
2From: Thomas Kuehne <thomas@kuehne.cn>
3Date: Sat, 11 Dec 2021 21:10:41 +0100
4Subject: [PATCH] fix -Wimplicit-int for ifsense
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9fixes:
10xmlif/xmlif.l:46:8: warning: type defaults to ‘int’ in declaration of ‘ifsense’ [-Wimplicit-int]
11 46 | static ifsense; /* sense of last `if' or unless seen */
12 | ^~~~~~~
13
14Signed-off-by: Thomas Kuehne <thomas@kuehne.cn>
15Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
16Upstream-Status: Backport [v0.0.29 https://pagure.io/xmlto/c/1375e2df75530cd198bd16ac3de38e2b0d126276?branch=master
17---
18 xmlif/xmlif.l | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/xmlif/xmlif.l b/xmlif/xmlif.l
22index ac42136..6e5970e 100644
23--- a/xmlif/xmlif.l
24+++ b/xmlif/xmlif.l
25@@ -43,7 +43,7 @@
26
27 static char **selections; /* selection tokens */
28 static int nselections; /* number of selections */
29-static ifsense; /* sense of last `if' or unless seen */
30+static int ifsense; /* sense of last `if' or unless seen */
31 static char *attribute; /* last attribute scanned */
32
33 struct stack_t {