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

RTEMS trac trac at rtems.org
Mon Oct 28 09:02:01 UTC 2019


#3799: confdefs.h declares an array with zero elements, that's invalid C
-------------------------+-------------------------------------------------
 Reporter:  Jens         |       Owner:  Sebastian Huber
  Schweikhardt           |  <sebastian.huber@…>
     Type:  defect       |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  rtems        |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  confdefs.h   |  Blocked By:
  array                  |
 Blocking:               |
-------------------------+-------------------------------------------------
Changes (by Sebastian Huber <sebastian.huber@…>):

 * owner:  (none) => Sebastian Huber <sebastian.huber@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a7c86ccb25da3254fbe554bc8d47626554bfd3b9/rtems"
 a7c86cc/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="a7c86ccb25da3254fbe554bc8d47626554bfd3b9"
 config: Avoid zero-length array

 Use RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION() instead.

 Close #3799.
 }}}

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


More information about the bugs mailing list