Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and refactor problems found via GCC 7's -Wimplicit-fallthrough.
This commit fixes various problems discovered by building on Debian buster which uses GCC 7. Building on buster gave various -Wimplicit-fallthrough warnings. In Group.cpp and Server.cpp, we now use if statements instead of a switch with fallthrough. This improves readability of the code, and fixes the implicit fallthroughs. In PulseAudio.cpp, we had unintended fallthroughs in a switch statement, which have been fixed. In Cert.cpp, we had a potential fallthrough which was impossible to trigger at runtime, fixed by adding an error return, like the surrounding code. Fixes #3306.
- Loading branch information
1 parent
2c24ee0
commit 0b5579c
Showing
4 changed files
with
51 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters