[RTEMS Project] #4035: Reserved identifier "time" re-used in rtems_clock_get_tod_timeval()
RTEMS trac
trac at rtems.org
Fri Jul 31 10:17:10 UTC 2020
#4035: Reserved identifier "time" re-used in rtems_clock_get_tod_timeval()
--------------------------------+--------------------
Reporter: Jens Schweikhardt | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: rtems | Version: 5
Severity: minor | Keywords:
Blocked By: | Blocking:
--------------------------------+--------------------
The ISO C identifier "time" from time.h is re-used in the prototype and
definition of the rtems_clock_get_tod_timeval() function (and maybe
elsewhere too).
In certain cases this could lead to undefined behavior.
It certainly upsets our lint (Gimpel FlexeLint).
It's good software hygiene to avoid shadowing ISO C identifiers.
Desired change: in cpukit/rtems/src/clockgettodtimeval.c
use an unreserved identifier.
--
Ticket URL: <http://devel.rtems.org/ticket/4035>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list