Skip to content

Commit

Permalink
build: Fix build with -Werror=implicit-fallthrough
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
  • Loading branch information
scabrero committed Jun 11, 2024
1 parent 210f6d7 commit 0d4ce2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ long varlink_stream_read(VarlinkStream *stream, VarlinkObject **messagep) {
asm("unreachable\n");
#pragma clang diagnostic pop

/* fall through */
case 0:
stream->hup = true;
*messagep = NULL;
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ c_args = '''
-Werror=return-type
-Werror=incompatible-pointer-types
-Werror=cast-qual
-Werror=implicit-fallthrough
'''.split()

foreach arg : c_args
Expand Down

0 comments on commit 0d4ce2b

Please sign in to comment.