diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-18 17:27:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-18 17:37:54 +0200 |
commit | e0d5c1426c4ecad8832847e8a69b65ea6fc100fc (patch) | |
tree | a1f7fe3bf4518ec61d501c9a3bf4b96e8704a390 /libs/midi++2 | |
parent | 37194ec805807143c2d9cb4a76ab7f258a3d0622 (diff) |
NO-OP: fix some Wimplicit-fallthrough
gcc can recognize various regexps in comments. Since C++17 provides
[[fallthrough]], using /* fallthrough */ consistently seems
appropriate until we switch to C++17.
see also https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
Diffstat (limited to 'libs/midi++2')
-rw-r--r-- | libs/midi++2/parser.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/midi++2/parser.cc b/libs/midi++2/parser.cc index fa5e796ca7..1b08eea8c1 100644 --- a/libs/midi++2/parser.cc +++ b/libs/midi++2/parser.cc @@ -493,9 +493,10 @@ Parser::scanner (unsigned char inbyte) case NEEDTWOBYTES: /* wait for the second byte */ - if (msgindex < 3) + if (msgindex < 3) { return; - /*FALLTHRU*/ + } + /* fallthrough */ case NEEDONEBYTE: /* We've completed a 1 or 2 byte message. */ |