[RTEMS Project] #3799: confdefs.h declares an array with zero elements, that's invalid C

RTEMS trac trac at rtems.org
Mon Oct 7 07:16:55 UTC 2019


#3799: confdefs.h declares an array with zero elements, that's invalid C
-------------------------------+---------------------
 Reporter:  Jens Schweikhardt  |       Owner:  (none)
     Type:  defect             |      Status:  new
 Priority:  normal             |   Milestone:
Component:  rtems              |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  confdefs.h array   |  Blocked By:
 Blocking:                     |
-------------------------------+---------------------

Comment (by Jens Schweikhardt):

 It's difficult for me to apply the patch set since we use the RTEMS 5.x as
 shipped by Cobham/Gaisler Research for their RCC 1.3-rc6-gcc. This differs
 enough from current RTEMS to make this a bit involved. However, I've
 locally patched it simply by changing `[0]` to `[1]` and Polyspace R2013a
 no longer crashes. I fully trust your patch set to fix this as well, so go
 ahead and close this as fixed. Thanks a lot for your work, Sebastian!

--
Ticket URL: <http://devel.rtems.org/ticket/3799#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list