[RTEMS Project] #3350: sptimecounter02 warning due to defining _KERNEL and disabling part of <sys/time.h>
RTEMS trac
trac at rtems.org
Thu Mar 15 22:32:28 UTC 2018
#3350: sptimecounter02 warning due to defining _KERNEL and disabling part of
<sys/time.h>
----------------------------+-----------------------
Reporter: Joel Sherrill | Owner: sebastian
Type: defect | Status: assigned
Priority: normal | Milestone: 5.1
Component: rtems | Version: 5
Severity: normal | Keywords:
Blocked By: | Blocking:
----------------------------+-----------------------
The bottom of <sys/time.h> is protected by ifndef _KERNEL where
gettimeofday() is prototyped. sptimecounter02 is the only test which trips
this.
In file included from /home/joel/rtems-work/rtems-
testing/rtems/rtems/cpukit/include/rtems/confdefs.h:323:0,
from
../../../../../../../rtems/c/src/../../testsuites/sptests/sptimecounter02/init.c:268:
/home/joel/rtems-work/rtems-
testing/rtems/rtems/cpukit/include/rtems/imfs.h: In function
'IMFS_update_atime':
/home/joel/rtems-work/rtems-
testing/rtems/rtems/cpukit/include/rtems/imfs.h:345:3: warning: implicit
declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
gettimeofday( &now, 0 );
^~~~~~~~~~~~
--
Ticket URL: <http://devel.rtems.org/ticket/3350>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list