Re: [PATCH] Fix warnings reported by GCC7

Kevin Atkinson <[email protected]> Fri, 16 Dec 2016 16:28:05 -0500 (EST)
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-1610516084-1481923689=:25612
Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: quoted-printable


Hi,

Are these warnings or errors?

The fixes look valid but I need to make sure that it was the intended=20
behavior.

Thanks,
Kevin


On Fri, 16 Dec 2016, Martin Li=A8ka wrote:

> 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/s=
tandard-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.00000000=
0 +0200
> +++ aspell-0.60.6.1/modules/filter/tex.cpp	2016-12-16 11:14:33.89317613=
9 +0100
> @@ -174,7 +174,7 @@
>
>     if (c =3D=3D '{') {
>
> -      if (top.in_what =3D=3D Parm || top.in_what =3D=3D Opt || top.do_=
check =3D=3D '\0')
> +      if (top.in_what =3D=3D Parm || top.in_what =3D=3D Opt || *top.do=
_check =3D=3D '\0')
> 	push_command(Parm);
>
>       top.in_what =3D Parm;
> diff -u -r aspell-0.60.6.1/prog/check_funs.cpp /var/tmp/build-root/stan=
dard-x86_64/home/abuild/rpmbuild/BUILD/aspell-0.60.6.1/prog/check_funs.cp=
p
> --- 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 =3D=3D width-1) {
> -    if (word =3D=3D '\0')
> +    if (*word =3D=3D '\0')
>       put(out,' ');
>     else if (word[len] =3D=3D '\0')
>       put(out, word, len);
>
> May I ask you for review and installation of the patch.
>
> Thanks,
> Martin
>
> _______________________________________________
> Aspell-devel mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/aspell-devel
>
>
--8323329-1610516084-1481923689=:25612
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Aspell-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/aspell-devel

--8323329-1610516084-1481923689=:25612--