[RTEMS Project] #3189: MUTEX_INITIALIZER missing braces warning

RTEMS trac trac at rtems.org
Fri Oct 13 01:50:07 UTC 2017


#3189: MUTEX_INITIALIZER missing braces warning
---------------------------+--------------------
 Reporter:  Joel Sherrill  |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  high           |  Milestone:  4.12.0
Component:  tool/newlib    |    Version:  4.12
 Severity:  blocker        |   Keywords:
---------------------------+--------------------
 Hi

 Multiple tests have this warning. Appears to be something not quite right
 in the newlib .h files.

 {{{
     21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_mutex_unlock.c:27:27:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_mutex_trylock.c:27:27:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_mutex_timedlock.c:30:27:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_mutex_lock.c:27:27:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_mutex_init.c:27:31:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_mutex_destroy.c:27:28:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_cond_wait.c:28:27:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxhdrs/pthread/pthread_cond_timedwait.c:28:27:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxautoinit02/init.c:33:25:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxautoinit01/init.c:29:28:
 warning: missing braces around initializer [-Wmissing-braces]
      21
 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psxautoinit01/init.c:28:28:
 warning: missing braces around initializer [-Wmissing-braces]
      21 ../../../../../../../rtems/c/src/../../testsuites/psxtests/psx0
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3189>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list