This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] libgcc: Use braces instead of macro's empty body to avoid xgcc warnings.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]