From: "craig.ringer at 2ndquadrant dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug runtime/25267] kernel 5.3: error: this statement may fall through [-Werror=implicit-fallthrough=]
Date: Tue, 10 Dec 2019 08:02:00 -0000 [thread overview]
Message-ID: <bug-25267-6586-6QeRe29FrI@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <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.
next prev parent reply other threads:[~2019-12-10 8:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-10 6:23 [Bug runtime/25267] New: " craig.ringer at 2ndquadrant dot com
2019-12-10 6:23 ` [Bug runtime/25267] " craig.ringer at 2ndquadrant dot com
2019-12-10 6:24 ` craig.ringer at 2ndquadrant dot com
2019-12-10 6:35 ` craig.ringer at 2ndquadrant dot com
2019-12-10 8:02 ` craig.ringer at 2ndquadrant dot com [this message]
2019-12-10 17:29 ` fche at redhat dot com
2019-12-13 5:59 ` craig.ringer at 2ndquadrant dot com
2019-12-13 7:24 ` craig.ringer at 2ndquadrant dot com
2020-07-13 6:51 ` craig.ringer at 2ndquadrant dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-25267-6586-6QeRe29FrI@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).