summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2021-04-18 00:40:31 -0400
committerGravatar lat9nq2021-04-18 01:31:26 -0400
commitf973274b99d6683d257d77b5d2fd1994853ec3a7 (patch)
tree59b6f685fbb2878a921153e9e89b4f3c542d01b1 /src/input_common/sdl/sdl_impl.cpp
parentcmake: Use SDL 2.0.14 and fix CMake scope issue (diff)
downloadyuzu-f973274b99d6683d257d77b5d2fd1994853ec3a7.tar.gz
yuzu-f973274b99d6683d257d77b5d2fd1994853ec3a7.tar.xz
yuzu-f973274b99d6683d257d77b5d2fd1994853ec3a7.zip
general: Ignore implicit-fallthrough for SDL.h
SDL 2.0.14 introduces an incompatibility with Clang, causing it to trigger -Wimplicit-fallthrough even though it is marked. Ignore it for now, with a comment mentioning why this is needed.
Diffstat (limited to '')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp
index 9418e78fa..f682a6db4 100644
--- a/src/input_common/sdl/sdl_impl.cpp
+++ b/src/input_common/sdl/sdl_impl.cpp
@@ -17,7 +17,17 @@
17#include <unordered_map> 17#include <unordered_map>
18#include <utility> 18#include <utility>
19#include <vector> 19#include <vector>
20
21// Ignore -Wimplicit-fallthrough due to https://github.com/libsdl-org/SDL/issues/4307
22#ifdef __clang__
23#pragma clang diagnostic push
24#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
25#endif
20#include <SDL.h> 26#include <SDL.h>
27#ifdef __clang__
28#pragma clang diagnostic pop
29#endif
30
21#include "common/logging/log.h" 31#include "common/logging/log.h"
22#include "common/param_package.h" 32#include "common/param_package.h"
23#include "common/settings_input.h" 33#include "common/settings_input.h"