#3189 closed defect (fixed)

MUTEX_INITIALIZER missing braces warning

Reported by: Joel Sherrill Owned by: Sebastian Huber
Priority: high Milestone: 5.1
Component: tool/newlib Version: 5
Severity: blocker Keywords:
Cc: Blocked By:
Blocking:

Description

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

Change History (5)

comment:1 Changed on Oct 13, 2017 at 1:50:22 AM by Joel Sherrill

Owner: set to Sebastian Huber
Status: newassigned

comment:2 Changed on Oct 13, 2017 at 6:04:01 AM by Sebastian Huber

How did you get these warnings? I get them when I turn on -Wsystem-headers by hand.

comment:3 Changed on Oct 13, 2017 at 6:09:49 AM by Sebastian Huber

Fixed in Newlib. I will integrate this with the October Newlib snapshot.

comment:4 Changed on Nov 9, 2017 at 6:27:14 AM by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

comment:5 Changed on Nov 9, 2017 at 7:09:37 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In c6b890c/rtems-source-builder:

5: Add Newlib patches

Update #3185.
Close #3189.

Note: See TracTickets for help on using tickets.