diff options
| author | 2020-11-15 06:22:01 -0500 | |
|---|---|---|
| committer | 2020-11-22 04:50:03 -0500 | |
| commit | 5c4774e8ce1d3c5391402f4b2244cfb4dfe7d57a (patch) | |
| tree | 4f65578a7b6cd6d5f379b177919583bcfb8e71f3 /src/input_common/sdl/sdl_impl.cpp | |
| parent | Merge pull request #4944 from lioncash/system-rem (diff) | |
| download | yuzu-5c4774e8ce1d3c5391402f4b2244cfb4dfe7d57a.tar.gz yuzu-5c4774e8ce1d3c5391402f4b2244cfb4dfe7d57a.tar.xz yuzu-5c4774e8ce1d3c5391402f4b2244cfb4dfe7d57a.zip | |
input_common: Treat warnings as errors
Migrates over warnings as errors for input common to match how the
common library treats warnings as errors.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index c395d96cf..c16928e98 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -864,6 +864,8 @@ Common::ParamPackage SDLEventToMotionParamPackage(SDLState& state, const SDL_Eve | |||
| 864 | Common::ParamPackage BuildParamPackageForBinding(int port, const std::string& guid, | 864 | Common::ParamPackage BuildParamPackageForBinding(int port, const std::string& guid, |
| 865 | const SDL_GameControllerButtonBind& binding) { | 865 | const SDL_GameControllerButtonBind& binding) { |
| 866 | switch (binding.bindType) { | 866 | switch (binding.bindType) { |
| 867 | case SDL_CONTROLLER_BINDTYPE_NONE: | ||
| 868 | break; | ||
| 867 | case SDL_CONTROLLER_BINDTYPE_AXIS: | 869 | case SDL_CONTROLLER_BINDTYPE_AXIS: |
| 868 | return BuildAnalogParamPackageForButton(port, guid, binding.value.axis); | 870 | return BuildAnalogParamPackageForButton(port, guid, binding.value.axis); |
| 869 | case SDL_CONTROLLER_BINDTYPE_BUTTON: | 871 | case SDL_CONTROLLER_BINDTYPE_BUTTON: |
| @@ -984,7 +986,7 @@ class SDLPoller : public InputCommon::Polling::DevicePoller { | |||
| 984 | public: | 986 | public: |
| 985 | explicit SDLPoller(SDLState& state_) : state(state_) {} | 987 | explicit SDLPoller(SDLState& state_) : state(state_) {} |
| 986 | 988 | ||
| 987 | void Start(const std::string& device_id) override { | 989 | void Start([[maybe_unused]] const std::string& device_id) override { |
| 988 | state.event_queue.Clear(); | 990 | state.event_queue.Clear(); |
| 989 | state.polling = true; | 991 | state.polling = true; |
| 990 | } | 992 | } |