[RTEMS Project] #2731: rtems/c/src/lib/libbsp/arm/raspberrypi/console/console_select.c:98]: (warning) Found calculation inside sizeof().

RTEMS trac trac at rtems.org
Thu Jan 19 20:38:58 UTC 2017


#2731: rtems/c/src/lib/libbsp/arm/raspberrypi/console/console_select.c:98]:
(warning) Found calculation inside sizeof().
---------------------+--------------------------------------
 Reporter:  dcb      |       Owner:  Gedare Bloom <gedare@…>
     Type:  defect   |      Status:  closed
 Priority:  normal   |   Milestone:  4.11.1
Component:  General  |     Version:  4.10
 Severity:  normal   |  Resolution:  fixed
 Keywords:           |
---------------------+--------------------------------------
Changes (by Gedare Bloom <gedare@…>):

 * owner:   => Gedare Bloom <gedare@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"21267897368c8598cc294b73d504be54cce3602c/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="21267897368c8598cc294b73d504be54cce3602c"
 raspberrypi: fix math inside of sizeof

 Move the subtraction of 1 for terminator outside of
 sizeof operator.

 Closes #2731.
 }}}

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


More information about the bugs mailing list