Magellan Linux

Annotation of /trunk/aspell/patches/aspell-0.60.6.1-gcc7-fixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3017 - (hide annotations) (download)
Fri Oct 27 08:13:47 2017 UTC (6 years, 7 months ago) by niro
File size: 986 byte(s)
-added gcc7 fixes
1 niro 3017 commit 8089fa02122fed0a6394eba14bbedcb1d18e2384
2     Author: Kevin Atkinson <kevina@gnu.org>
3     Date: Thu Dec 29 00:50:31 2016 -0500
4    
5     Compile Fixes for GCC 7.
6    
7     Closes #519.
8    
9     diff --git a/modules/filter/tex.cpp b/modules/filter/tex.cpp
10     index a979539..19ab63c 100644
11     --- a/modules/filter/tex.cpp
12     +++ b/modules/filter/tex.cpp
13     @@ -174,7 +174,7 @@ namespace {
14    
15     if (c == '{') {
16    
17     - if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0')
18     + if (top.in_what == Parm || top.in_what == Opt || *top.do_check == '\0')
19     push_command(Parm);
20    
21     top.in_what = Parm;
22     diff --git a/prog/check_funs.cpp b/prog/check_funs.cpp
23     index db54f3d..89ee09d 100644
24     --- a/prog/check_funs.cpp
25     +++ b/prog/check_funs.cpp
26     @@ -647,7 +647,7 @@ static void print_truncate(FILE * out, const char * word, int width) {
27     }
28     }
29     if (i == width-1) {
30     - if (word == '\0')
31     + if (*word == '\0')
32     put(out,' ');
33     else if (word[len] == '\0')
34     put(out, word, len);