[RTEMS Project] #2873: src/c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c:320: defective error checking ?

RTEMS trac trac at rtems.org
Sun Feb 5 09:06:38 UTC 2017


#2873: src/c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c:320: defective error
checking ?
---------------------+--------------------------------------
 Reporter:  dcb      |       Owner:  Gedare Bloom <gedare@…>
     Type:  defect   |      Status:  closed
 Priority:  normal   |   Milestone:  4.12
Component:  General  |     Version:  4.11
 Severity:  normal   |  Resolution:  fixed
 Keywords:           |
---------------------+--------------------------------------

Comment (by dcb):

 >I would like to know what you are running to spot these issues and what
 settings.

 I run a static C / C++ analyser called cppcheck, available from
 sourceforge.

 http://cppcheck.sourceforge.net/

 The latest released version would probably work ok, but I use the current
 development version.
 I use flag --enable=all and I've tweeked the source of cppcheck as well.

 BTW, if I could figure out how to build rtems on Linux, then I could run
 the latest
 development versions of clang and gcc over rtems and possibly get some
 interesting warnings.

 >I would like to make sure that eventually we are running the same thing
 as a project.

 I have been doing this myself for about a year or so. I'd be more than
 happy
 to help and share my results.

 > I would have emailed directly but couldn't find your email.

 dcb 314 at hotmail dot com. Feel free to chat offline.

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


More information about the bugs mailing list