This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/25267] kernel 5.3: error: this statement may fall through [-Werror=implicit-fallthrough=]
- From: "craig.ringer at 2ndquadrant dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 10 Dec 2019 08:02:32 +0000
- Subject: [Bug runtime/25267] kernel 5.3: error: this statement may fall through [-Werror=implicit-fallthrough=]
- Auto-submitted: auto-generated
- References: <bug-25267-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=25267
--- Comment #2 from Craig Ringer <craig.ringer at 2ndquadrant dot com> ---
Correction, workaround is
```
commit 495ed9143004e62284f959f0a7630bdf229c6e62 (HEAD -> master)
Author: Craig Ringer <craig@2ndquadrant.com>
Date: Tue Dec 10 15:24:15 2019 +0800
Work around bug #25267 on Linux 5.3
diff --git a/buildrun.cxx b/buildrun.cxx
index 505902bc5..5f9a7208a 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",
"-pthread", "-lrt", "-fPIC", "-shared",
};
@@ -539,6 +540,7 @@ compile_pass (systemtap_session& s)
// Assumes linux 2.6 kbuild
o << "EXTRA_CFLAGS += -Wno-unused $(call
cc-option,-Wno-tautological-compare) " << WERROR
+ << "-Wno-error=implicit-fallthrough "
<< endl;
#if CHECK_POINTER_ARITH_PR5947
o << "EXTRA_CFLAGS += -Wpointer-arith" << endl;
```
--
You are receiving this mail because:
You are the assignee for the bug.