From e9dcf0a447de66cdd3c3ce99c44bea4afd573f4f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 17 Jan 2016 19:07:39 +0100 Subject: * adaint.c (__gnat_killprocesstree): Avoid -Wparentheses warning. From-SVN: r232485 --- gcc/ada/adaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ada/adaint.c') diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 8a71888..3053c69 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -3281,7 +3281,7 @@ void __gnat_killprocesstree (int pid, int sig_num) /* kill child processes first */ - while (d = readdir (dir)) + while ((d = readdir (dir)) != NULL) { if ((d->d_type & DT_DIR) == DT_DIR) { -- cgit v1.1