[Bug runtime/25267] kernel 5.3: error: this statement may fall through [-Werror=implicit-fallthrough=]
craig.ringer at 2ndquadrant dot com
sourceware-bugzilla@sourceware.org
Tue Dec 10 06:35:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=25267
--- Comment #1 from Craig Ringer <craig.ringer at 2ndquadrant dot com> ---
I wrote this up earlier as
https://stackoverflow.com/questions/58443706/systemtap-stap-probes-fail-with-this-statement-may-fall-through-werror-impl
Cross linked there.
Workaround:
```
diff --git a/buildrun.cxx b/buildrun.cxx
index 505902bc5..b29eeb797 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -235,6 +235,7 @@ compile_dyninst (systemtap_session& s)
"gcc", "--std=gnu99", s.translated_source, "-o", module,
"-fvisibility=hidden", "-O2", "-I" + s.runtime_path, "-D__DYNINST__",
"-Wall", WERROR, "-Wno-unused", "-Wno-strict-aliasing",
+ "-Wno-error=implicit-fallthrough", "-Wno-error=strict-prototypes",
"-pthread", "-lrt", "-fPIC", "-shared",
};
```
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list