* adaint.c (__gnat_killprocesstree): Avoid -Wparentheses warning.
authorJakub Jelinek <jakub@redhat.com>
Sun, 17 Jan 2016 18:07:39 +0000 (19:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 17 Jan 2016 18:07:39 +0000 (19:07 +0100)
From-SVN: r232485

gcc/ada/ChangeLog
gcc/ada/adaint.c

index f3b40d64f045cd5b5113b58c2d1c3fa59a8f29bb..d3369b6e4ecac8084051f8ba449729f2e7ceaac6 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * adaint.c (__gnat_killprocesstree): Avoid -Wparentheses warning.
+
 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
 
        * adaint.c (__gnat_locate_exec_on_path): Use const char * instead
index 8a71888eb82f42b3c34c5813dd0f5a59186dfb51..3053c69f504c4a09faa12a7be679ec51a807d595 100644 (file)
@@ -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)
         {