aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[aspell-devel] [PATCH] Fix warnings reported by GCC7


From: Martin Liška
Subject: [aspell-devel] [PATCH] Fix warnings reported by GCC7
Date: Fri, 16 Dec 2016 11:25:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Hello.

To compile the project with GCC7, I needed following patch.

diff -u -r aspell-0.60.6.1/modules/filter/tex.cpp 
/var/tmp/build-root/standard-x86_64/home/abuild/rpmbuild/BUILD/aspell-0.60.6.1/modules/filter/tex.cpp
--- aspell-0.60.6.1/modules/filter/tex.cpp      2011-07-02 23:09:09.000000000 
+0200
+++ aspell-0.60.6.1/modules/filter/tex.cpp      2016-12-16 11:14:33.893176139 
+0100
@@ -174,7 +174,7 @@
 
     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 -u -r aspell-0.60.6.1/prog/check_funs.cpp 
/var/tmp/build-root/standard-x86_64/home/abuild/rpmbuild/BUILD/aspell-0.60.6.1/prog/check_funs.cpp
--- aspell-0.60.6.1/prog/check_funs.cpp 2011-07-04 11:17:27.000000000 +0200
+++ aspell-0.60.6.1/prog/check_funs.cpp 2016-12-16 11:15:23.294134519 +0100
@@ -647,7 +647,7 @@
     }
   }
   if (i == width-1) {
-    if (word == '\0')
+    if (*word == '\0')
       put(out,' ');
     else if (word[len] == '\0')
       put(out, word, len);

May I ask you for review and installation of the patch.

Thanks,
Martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]