[chrony-dev] Compile warnings on macOS |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] Compile warnings on macOS
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Thu, 8 Dec 2016 19:53:16 +1300
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:Date:Message-Id: Subject:From:List-Unsubscribe:Reply-To; bh=rAFyWToaIlAMKIdCSVoVLMJjQYVevK+F5Gqv4zi+goU=; b=azE1FxV+HPaWAoxVWb1Y4ciKM4 Cmk3zzmm8br4JhAhUSh4D/RgADMT3jaOJQYSE39LIXcTR9PGsu9U1RURxmUNtlS3ZNon7hRQbhQ8z NYYUeJ+AJBqU0hig+j9C1WX3zQyUrFp82FW1AVYzVGxs7BcMGM3rDdJ0v+7vnFKkqWv/7nnpSkMzC rDayiHXoGS0E5/p2j2Tkj+oN3gCoKiIwPiVcWuWXZO08T6a3rrfMh3tjfnNYch2/st22ECRqKk/M2 4J0KVlYMVDa4DNk4Sn09v+Mo/pOB/PtVDVORSCA3M7HSfzB27miBw2gJtxYTr7zwL1PWXgsVwC/xR y64iW0sQ==;
- Feedback-id: 149811m:149811acx33YQ:149811sGuPlMc7Fs:SMTPCORP
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.