Subject:
Re: [PATCH v2] libgcc: Use braces instead of macro's empty body to avoid xgcc warnings.
From:
Jeff Law <law@redhat.com>
Date:
04/13/2015 11:30 PM
To:
Chen Gang S <gang.chen@sunrus.com.cn>, ian@airs.com, Jakub Jelinek <jakub@redhat.com>
CC:
"walt@tilera.com" <walt@tilera.com>, gcc-patches List <gcc-patches@gcc.gnu.org>

On 01/30/2015 11:04 PM, Chen Gang S wrote:
The related warning (cross compile tile with --disable-threads):

   ../../../../gcc-tile-new/libgcc/libgcov-interface.c: In function '__gcov_fork':
   ../../../../gcc-tile-new/libgcc/libgcov-interface.c:182:53: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
        __GTHREAD_MUTEX_INIT_FUNCTION (&__gcov_flush_mx);
                                                        ^
2015-01-31  Chen Gang  <gang.chen.5i5j@gmail.com>

    * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use braces
    instead of macro's empty body to avoid xgcc warnings.
OK for the trunk.

jeff