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 06:35:00 -0000 [thread overview]
Message-ID: <bug-25267-6586-HPOfMMkCGb@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 #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.
next prev parent reply other threads:[~2019-12-10 6:35 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 [this message]
2019-12-10 8:02 ` craig.ringer at 2ndquadrant dot com
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-HPOfMMkCGb@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).