Skip to content

Commit 4bcc253

Browse files
author
Jesse
committed
Update example.cpp
1 parent 45946d8 commit 4bcc253

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

example.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ int main(int argc, const char* argv[]) {
3838
switch (parser.get<unsigned int>("v")) {
3939
case 2:
4040
std::cout << "an even more verbose string" << std::endl;
41-
#ifdef __GNUC__
42-
[[gnu::fallthrough]];
43-
#endif
41+
// fall through
4442
case 1:
4543
std::cout << "a verbose string" << std::endl;
46-
#ifdef __GNUC__
47-
[[gnu::fallthrough]];
48-
#endif
44+
// fall through
4945
default:
5046
std::cout << "some verbosity" << std::endl;
5147
}

0 commit comments

Comments
 (0)