[chrony-dev] TOT does not build cleanly

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


gcc -O2 -g -fstack-protector-strong --param=ssp-buffer-size=4
-Wmissing-prototypes -Wshadow -Wall -pthread -I/usr/local/include
-I/usr/local/include -c sys_macosx.c
sys_macosx.c:248:35: warning: incompatible pointer types passing
'struct timeval *' to parameter of
      type 'const struct timespec *' [-Wincompatible-pointer-types]
  248 |   if (PRV_SetTime(CLOCK_REALTIME, &new_time_tv) < 0) {
      |                                   ^~~~~~~~~~~~
../privops.h:44:59: note: passing argument to parameter 'tp' here
   44 | int PRV_SetTime(clockid_t clockid, const struct timespec *tp);
      |                                                           ^
1 warning generated.

The caller invokes PRV_SetTime(struct timeval *), the definition is
PRV_SetTime(struct timespec *).

4.8-28-ge313f5a

David Bohman

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/