This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Another warning fix in adaint.c
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Jan 2016 18:56:53 +0100
- Subject: Re: [PATCH] Another warning fix in adaint.c
- Authentication-results: sourceware.org; auth=none
- References: <20160115200436 dot GE3017 at tucnak dot redhat dot com> <20160115200939 dot GA18406 at adacore dot com> <20160117175125 dot GO3017 at tucnak dot redhat dot com>
> Following patch fixes another warning in adaint.c:
> ../../gcc/ada/adaint.c: In function 'void
> __gnat_killprocesstree(int, int)':
> ../../gcc/ada/adaint.c:3284:26: warning: suggest parentheses around
> assignment used as truth value [-Wparentheses]
> while (d = readdir (dir))
> ^
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
Yes, thanks.
> 2016-01-17 Jakub Jelinek <jakub@redhat.com>
>
> * adaint.c (__gnat_killprocesstree): Avoid -Wparentheses warning.