diff options
author | wm4 <wm4@nowhere> | 2019-12-11 17:23:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-11 17:28:47 +0100 |
commit | c84460f61fa2417511193803d0afcf4ac903ad4f (patch) | |
tree | 393bc05e57523bc9e39033c57ae116540ea34536 /stream/stream_dvdnav.c | |
parent | c68251a3a72f8284e6cb7808a57e2e5137376c3a (diff) | |
download | mpv-c84460f61fa2417511193803d0afcf4ac903ad4f.tar.bz2 mpv-c84460f61fa2417511193803d0afcf4ac903ad4f.tar.xz |
build: add -Wimplicit-fallthrough
This warning seems to be designed well. It doesn't seem to warn on
fallthrough-only case statements, so it's compatible to well written
code.
stream_dvdnav.c had an obscure bug in inactive code, fix it.
stream_dvb.c is the only place where it intentionally falls through, I
guess I'll just leave it alone.
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r-- | stream/stream_dvdnav.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index a042508c2a..619284f393 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -475,6 +475,7 @@ static int control(stream_t *stream, int cmd, void *arg) break; if (dvdnav_angle_change(dvdnav, new_angle) != DVDNAV_STATUS_OK) return 1; + break; } case STREAM_CTRL_GET_LANG: { struct stream_lang_req *req = arg; |