[Git][NTPsec/ntpsec][master] Address Gitlab issue #203: compiler warnings on armhf/mips64
Eric S. Raymond
gitlab at mg.gitlab.com
Wed Dec 14 05:30:14 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
ea3ebfa6 by Eric S. Raymond at 2016-12-14T00:30:04-05:00
Address Gitlab issue #203: compiler warnings on armhf/mips64
- - - - -
2 changed files:
- include/ntp_types.h
- tests/libntp/vi64ops.c
Changes:
=====================================
include/ntp_types.h
=====================================
--- a/include/ntp_types.h
+++ b/include/ntp_types.h
@@ -56,9 +56,7 @@ typedef uint64_t time64_t;
#define time64lo(n) ((uint32_t)GET32LAST(n))
#define settime64lo(n,v) SET32LAST(n,v)
#define time64his(n) ((int32_t)(GET32FIRST(n)))
-#define settime64his(n,v) SET32FIRST(n,v)
#define time64hiu(n) ((uint32_t)(GET32FIRST(n)))
-#define settime64hiu(n,v) SET32FIRST(n,v)
#define time64s(n) ((int64_t)(n))
#define settime64s(n,v) (n) = ((int64_t)(v))
#define time64u(n) (n)
=====================================
tests/libntp/vi64ops.c
=====================================
--- a/tests/libntp/vi64ops.c
+++ b/tests/libntp/vi64ops.c
@@ -10,22 +10,6 @@ TEST_SETUP(vi64ops) {}
TEST_TEAR_DOWN(vi64ops) {}
-TEST(vi64ops, HiLoVUI64uh) {
- time64_t exp = 0;
-
- settime64hiu(exp, 0x01234567);
- settime64lo(exp, 0x89ABCDEF);
- TEST_ASSERT_EQUAL(time64hiu(exp), 0x01234567);
-}
-
-TEST(vi64ops, HiLoVUI64ul) {
- time64_t exp = 0;
-
- settime64hiu(exp, 0x01234567);
- settime64lo(exp, 0x89ABCDEF);
- TEST_ASSERT_EQUAL(time64lo(exp), 0x89ABCDEF);
-}
-
TEST(vi64ops, SetVUI64s_pos) {
time64_t exp = 0;
@@ -55,8 +39,6 @@ TEST(vi64ops, NegVUI64) {
}
TEST_GROUP_RUNNER(vi64ops) {
- RUN_TEST_CASE(vi64ops, HiLoVUI64uh);
- RUN_TEST_CASE(vi64ops, HiLoVUI64ul);
RUN_TEST_CASE(vi64ops, SetVUI64s_pos);
RUN_TEST_CASE(vi64ops, SetVUI64s_neg);
RUN_TEST_CASE(vi64ops, SetVUI64u);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ea3ebfa693cf40164a219babe02a5a93964b315e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161214/c665caee/attachment.html>
More information about the vc
mailing list