summaryrefslogtreecommitdiffstats
path: root/src/aspell-1-fixes.patch
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2017-05-24 09:33:01 (GMT)
committerMark Brand <mabrand@mabrand.nl>2017-05-24 09:33:01 (GMT)
commitd809d7f5d18bb444139e34202200b1281aeb0190 (patch)
tree9e657ee000a5122a115637a45b1d2e720e5b1a4d /src/aspell-1-fixes.patch
parent00da932fef31a046b4507fc3ceb98b17e5f1d682 (diff)
downloadmxe-d809d7f5d18bb444139e34202200b1281aeb0190.zip
mxe-d809d7f5d18bb444139e34202200b1281aeb0190.tar.gz
mxe-d809d7f5d18bb444139e34202200b1281aeb0190.tar.bz2
aspell: gcc 7 build fix
Diffstat (limited to 'src/aspell-1-fixes.patch')
-rw-r--r--src/aspell-1-fixes.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/aspell-1-fixes.patch b/src/aspell-1-fixes.patch
index 9517125..6c80a85 100644
--- a/src/aspell-1-fixes.patch
+++ b/src/aspell-1-fixes.patch
@@ -632,3 +632,39 @@ index 1111111..2222222 100644
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Kevin Atkinson <kevina@gnu.org>
+Date: Thu, 29 Dec 2016 00:50:31 -0500
+Subject: [PATCH] Compile Fixes for GCC 7.
+
+Closes #519.
+
+(cherry picked from commit 8089fa02122fed0a6394eba14bbedcb1d18e2384)
+
+diff --git a/modules/filter/tex.cpp b/modules/filter/tex.cpp
+index 1111111..2222222 100644
+--- a/modules/filter/tex.cpp
++++ b/modules/filter/tex.cpp
+@@ -175,7 +175,7 @@ namespace {
+
+ if (c == '{') {
+
+- if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0')
++ if (top.in_what == Parm || top.in_what == Opt || *top.do_check == '\0')
+ push_command(Parm);
+
+ top.in_what = Parm;
+diff --git a/prog/check_funs.cpp b/prog/check_funs.cpp
+index 1111111..2222222 100644
+--- a/prog/check_funs.cpp
++++ b/prog/check_funs.cpp
+@@ -647,7 +647,7 @@ static void print_truncate(FILE * out, const char * word, int width) {
+ }
+ }
+ if (i == width-1) {
+- if (word == '\0')
++ if (*word == '\0')
+ put(out,' ');
+ else if (word[len] == '\0')
+ put(out, word, len);