[Git][NTPsec/ntpsec][master] ntpd/wscript: build the parser with -Wno-implicit-fallthrough
Gary E. Miller (@garyedmundsmiller)
gitlab at mg.gitlab.com
Wed Nov 4 04:04:14 UTC 2026
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
978ff65a by Matt Selsky at 2026-11-03T20:00:43-08:00
ntpd/wscript: build the parser with -Wno-implicit-fallthrough
Old Bisons, such as the 2.3 that ships with macOS, generate an
unannotated fall-through in the parser. Now that clang builds enable
-Wimplicit-fallthrough, that broke macOS builds with --enable-Werror.
Disable the warning for the parser alongside the existing
-Wno-switch-default.
- - - - -
1 changed file:
- ntpd/wscript
Changes:
=====================================
ntpd/wscript
=====================================
@@ -81,9 +81,9 @@ def build(ctx):
)
# Build the parser separately, so that we can disable -Wswitch-default
- # on this one build, since old Bisons run afoul of it. Also, at least
- # one old Bison generates a couple of references to undefined macros,
- # so we disable that warning as well.
+ # and -Wimplicit-fallthrough on this one build, since old Bisons run
+ # afoul of them. Also, at least one old Bison generates a couple of
+ # references to undefined macros, so we disable that warning as well.
ctx(
target="parser_obj",
features="c",
@@ -91,7 +91,8 @@ def build(ctx):
includes=[
ctx.bldnode.parent.abspath(), "../include",
"%s/host/ntpd/" % ctx.bldnode.parent.abspath(), "." ],
- cflags=["-Wno-switch-default", "-Wno-undef"], # For old Bisons
+ cflags=["-Wno-switch-default", "-Wno-undef",
+ "-Wno-implicit-fallthrough"], # For old Bisons
)
use_refclock = "" # XXX: there must be a better way to do this
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/978ff65adec87c9007ce9426c98b054079212a1d
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/978ff65adec87c9007ce9426c98b054079212a1d
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20261104/6cd4dd4e/attachment-0001.htm>
More information about the vc
mailing list