summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar lat9nq2023-05-05 03:48:28 -0400
committerGravatar lat9nq2023-05-05 03:48:28 -0400
commit740c3498202e7ffe79e0cede54c802a1da0cbb4c (patch)
treeca6ce35a8e214a2dfc0fce26666b08e876d08f4c /src
parentMerge pull request #9973 from GPUCode/async-present (diff)
downloadyuzu-740c3498202e7ffe79e0cede54c802a1da0cbb4c.tar.gz
yuzu-740c3498202e7ffe79e0cede54c802a1da0cbb4c.tar.xz
yuzu-740c3498202e7ffe79e0cede54c802a1da0cbb4c.zip
yuzu-sdl,audio_core: Remove antiquated warning ignore
Issue was fixed a long time ago, both by SDL2 and in yuzu by including SDL2 as a system library.
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/sink/sdl2_sink.cpp11
-rw-r--r--src/yuzu_cmd/config.cpp12
2 files changed, 2 insertions, 21 deletions
diff --git a/src/audio_core/sink/sdl2_sink.cpp b/src/audio_core/sink/sdl2_sink.cpp
index ee1a0652f..c1529d1f9 100644
--- a/src/audio_core/sink/sdl2_sink.cpp
+++ b/src/audio_core/sink/sdl2_sink.cpp
@@ -3,6 +3,7 @@
3 3
4#include <span> 4#include <span>
5#include <vector> 5#include <vector>
6#include <SDL.h>
6 7
7#include "audio_core/common/common.h" 8#include "audio_core/common/common.h"
8#include "audio_core/sink/sdl2_sink.h" 9#include "audio_core/sink/sdl2_sink.h"
@@ -10,16 +11,6 @@
10#include "common/logging/log.h" 11#include "common/logging/log.h"
11#include "core/core.h" 12#include "core/core.h"
12 13
13// Ignore -Wimplicit-fallthrough due to https://github.com/libsdl-org/SDL/issues/4307
14#ifdef __clang__
15#pragma clang diagnostic push
16#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
17#endif
18#include <SDL.h>
19#ifdef __clang__
20#pragma clang diagnostic pop
21#endif
22
23namespace AudioCore::Sink { 14namespace AudioCore::Sink {
24/** 15/**
25 * SDL sink stream, responsible for sinking samples to hardware. 16 * SDL sink stream, responsible for sinking samples to hardware.
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index fa347fb8c..a2f1d3d7e 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -4,18 +4,8 @@
4#include <memory> 4#include <memory>
5#include <optional> 5#include <optional>
6#include <sstream> 6#include <sstream>
7
8// Ignore -Wimplicit-fallthrough due to https://github.com/libsdl-org/SDL/issues/4307
9#ifdef __clang__
10#pragma clang diagnostic push
11#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
12#endif
13#include <SDL.h>
14#ifdef __clang__
15#pragma clang diagnostic pop
16#endif
17
18#include <INIReader.h> 7#include <INIReader.h>
8#include <SDL.h>
19#include "common/fs/file.h" 9#include "common/fs/file.h"
20#include "common/fs/fs.h" 10#include "common/fs/fs.h"
21#include "common/fs/path_util.h" 11#include "common/fs/path_util.h"