[Git][NTPsec/ntpsec][master] Tweaks to make gitlab happy with -Werror

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Tue Feb 11 21:19:20 UTC 2025



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
fb1f90f4 by Hal Murray at 2025-02-11T13:17:21-08:00
Tweaks to make gitlab happy with -Werror

- - - - -


3 changed files:

- .gitlab-ci.yml
- libaes_siv/tests.c
- ntpfrob/dump.c


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -285,7 +285,7 @@ openSUSE-leap-basic:
   <<: *job_definition
   image: $CI_REGISTRY/ntpsec/ntpsec/opensuse-leap
   script:
-    - python3 ./waf configure --disable-doc --disable-manpage --disable-nts build  --pyshebang "/usr/bin/env python3"
+    - python3 ./waf configure --disable-Werror --disable-doc --disable-manpage --disable-nts build  --pyshebang "/usr/bin/env python3"
     - python3 ./waf install
     - python3 ./waf uninstall
 
@@ -293,7 +293,7 @@ openSUSE-leap-refclocks:
   <<: *job_definition
   image: $CI_REGISTRY/ntpsec/ntpsec/opensuse-leap
   script:
-    - python3 ./waf configure --disable-doc --disable-manpage --disable-nts --refclock=all build
+    - python3 ./waf configure --disable-Werror --disable-doc --disable-manpage --disable-nts --refclock=all build
 
 # debian-stable-basic-32bit:
 #   <<: *job_definition


=====================================
libaes_siv/tests.c
=====================================
@@ -25,7 +25,7 @@ static void debug(const char *label, const unsigned char *hex, size_t len) {
                 if (i > 0 && i % 16 == 0) {
                         printf("\n                  ");
                 }
-                printf("%.2x", (int)hex[i]);
+                printf("%.2x", (unsigned int)hex[i]);
                 if (i > 0 && i % 4 == 3) {
                         printf(" ");
                 }


=====================================
ntpfrob/dump.c
=====================================
@@ -108,7 +108,8 @@ do_dump(const iomode mode, const int force)
         }
         puts("}\n");
     } else {
-        printf("time = %ld.%09ld\n", txc.time.tv_sec, txc.time.tv_usec);
+        printf("time = %ld.%09lld\n", \
+          txc.time.tv_sec, (long long)txc.time.tv_usec);
         printf("verbose = \"%s\"\n", verbose[v]);
         for (int i = 0; i < end; i++) {
             printf("%s = %ld\n", adjkey[i], adjval[i]);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/fb1f90f42f0a607dc7176f9973ea071ba870134b

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/fb1f90f42f0a607dc7176f9973ea071ba870134b
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/20250211/ab23cee7/attachment-0001.htm>


More information about the vc mailing list