[chrony-dev] Compile warnings on macOS

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


Couple of warnings compiling chrony on macOS after git pull

gcc -O2 -g -Wmissing-prototypes -Wall -pthread  -c ntp_core.c
ntp_core.c:1520:21: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
  if (sample_rx_tss < 0 || sample_rx_tss >= sizeof (tss_chars) ||
      ~~~~~~~~~~~~~ ^ ~
ntp_core.c:1521:29: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
      inst->local_tx.source < 0 || inst->local_tx.source >= sizeof (tss_chars))

-- 
Bryan Christianson
bryan@xxxxxxxxxxxxx




--
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/