[Git][NTPsec/ntpsec][master] Attempt to suppress some compiler warnings.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Sep 7 14:22:22 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
ebb6598e by Eric S. Raymond at 2017-09-07T14:21:39+00:00
Attempt to suppress some compiler warnings.
- - - - -
2 changed files:
- include/recvbuff.h
- libntp/clocktime.c
Changes:
=====================================
include/recvbuff.h
=====================================
--- a/include/recvbuff.h
+++ b/include/recvbuff.h
@@ -51,7 +51,7 @@ struct recvbuf {
union {
struct pkt X_recv_pkt;
uint8_t X_recv_buffer[RX_BUFF_SIZE];
- } recv_space;
+ } recv_space __attribute__ ((aligned));
#define recv_pkt recv_space.X_recv_pkt
#define recv_buffer recv_space.X_recv_buffer
int used; /* reference count */
=====================================
libntp/clocktime.c
=====================================
--- a/libntp/clocktime.c
+++ b/libntp/clocktime.c
@@ -91,6 +91,8 @@ clocktime(
*/
if (year > 1970) {
*yearstart = year_to_ntp(year);
+ /* adding a signed int to an unsigned seems to confuse gcc */
+#pragma GCC diagnostic ignored "-Wsign-conversion"
*ts_ui = *yearstart + tmp;
return true;
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ebb6598e5b5812e682ce798253db044b32fad7be
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ebb6598e5b5812e682ce798253db044b32fad7be
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170907/8a880c59/attachment.html>
More information about the vc
mailing list