Commit graph

34 commits

Author SHA1 Message Date
comex
4285e35375 Warnings cleanup for GCC 13 and Clang 16
Note: For GCC there are still a huge number of `-Warray-bounds` warnings
coming from `externals/dynarmic`.  I could have added a workaround in
`externals/CMakeLists.txt` similar to what this PR does for other
externals, but given Dynarmic's close affiliation with Yuzu, it would be
better to fix it upstream.

Besides that, on my machine, this makes the build warning-free except
for some warnings from glslangValidator and AutoMoc.

Details:

- Disable some warnings in externals.

- Disable `-Wnullability-completeness`, which is a Clang warning triggered
  by the Vulkan SDK where if any pointers in the header are marked
  _Nullable, it wants all pointers to be marked _Nullable or _Nonnull.
  Most of them are, but some aren't.  Who knows why.

- `src/web_service/verify_user_jwt.cpp`: Disable another warning when
  including `jwt.hpp`.

- `src/input_common/input_poller.cpp`: Add missing `override` specifiers.

- src/common/swap.h: Remove redundant `operator&`.  In general, this
  file declares three overloads of each operator.  Using `+` as an
  example, the overloads are:

  - a member function for `swapped_t + integer`
  - a member function for `swapped_t + swapped_t`
  - a free function for `integer + swapped_t`

  But for `operator&`, there was an additional free function for
  `swapped_t + integer`, which was redundant with the member function.
  This caused a GCC warning saying "ISO C++ says that these are
  ambiguous".
2023-08-25 19:22:31 -04:00
Narr the Reg
b24451c571 input_common: Implement native mifare support 2023-06-21 17:54:58 -06:00
german77
62acd50c0b core: hid: Update motion on a better place 2023-05-07 17:01:57 -06:00
Narr the Reg
53ec77c62c input_common: Add property to invert an axis button 2023-05-05 17:18:35 -06:00
german77
db99ab5431 input_common: Implement turbo buttons 2023-02-01 12:42:05 -06:00
german77
5cbeb6f1c4 input_common: Use DriverResult on all engines 2023-01-19 18:05:22 -06:00
Narr the Reg
59e89afde4 core: hid: Enable pulling color data from controllers 2023-01-19 18:05:20 -06:00
Narr the Reg
8e0e45dcb9 core: hid: Implement true multitouch support 2022-11-19 08:44:33 -06:00
liamwhite
f25243fd9d Merge pull request #9107 from german77/gidoly_rules
input_common: cache vibration tests
2022-10-25 12:13:18 -04:00
Morph
9fba74d245 general: Enforce C4800 everywhere except in video_core 2022-10-22 15:02:04 -04:00
german77
96881efdc3 input_common: cache vibration tests 2022-10-21 00:24:08 -05:00
german77
36d02d1fc3 input_common: have an unique vector in callback status 2022-10-09 12:49:18 -05:00
german77
d389a05005 service: nfp: address comments 2022-10-02 12:32:26 -05:00
german77
004f8f9512 input_common: Enable virtual amiibo driver 2022-10-02 12:32:26 -05:00
Narr the Reg
d4fb46d8f9 input_common: Add support for analog toggle 2022-09-06 11:21:28 -05:00
german77
76b18ad549 input_common: Add camera driver 2022-07-23 19:38:42 -05:00
Narr the Reg
d0bdbb9afb yuzu: config: Set default range to 95% 2022-04-26 19:03:54 -05:00
Morph
2b87305d31 general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-23 05:55:32 -04:00
bunnei
8c3f50e6bc Merge pull request #7859 from german77/battery_again
input_common: Remove battery duplicated struct and update every button press
2022-02-24 11:42:51 -08:00
german77
2ea4a2b74e yuzu: Add auto center on right click 2022-02-06 19:56:03 -06:00
german77
75d96d5462 input_common: Remove battery duplicated struct and update every button press 2022-02-06 18:33:55 -06:00
german77
1fca7203d3 input_common: Add option to configure gyro threshold 2022-01-23 21:54:33 -06:00
Lioncash
3dbb700714 input_poller: Add missing override specifiers 2021-12-13 20:41:17 -05:00
Lioncash
cd45635f56 input_engine: Pass LedStatus by const reference
Avoids copies where reasonably applicable
2021-12-13 09:20:58 -05:00
Lioncash
f41c22d30f input_engine: Pass VibrationStatus by const reference in SetRumble()
Avoids creating copies of the struct where not necessary.
2021-12-13 09:16:10 -05:00
german77
bc9641614d input_common: Fix SDL controller with inverted axis 2021-11-24 20:30:28 -06:00
german77
94c972fb36 input_common: Fix motion from 3 axis 2021-11-24 20:30:27 -06:00
german77
a8852024b6 settings: Fix Debug controller type options 2021-11-24 20:30:26 -06:00
german77
9f91335a71 kraken: Address comments from review
start lion review
2021-11-24 20:30:26 -06:00
german77
012691087a core/hid: Rework battery mappings 2021-11-24 20:30:26 -06:00
german77
ae6ba2c8bd input_common: Add manual update options to input devices 2021-11-24 20:30:26 -06:00
german77
0292fe0198 kraken: Fix errors from rebase and format files 2021-11-24 20:30:24 -06:00
german77
66cf94709a core/hid: Add output devices 2021-11-24 20:30:24 -06:00
german77
783c01771a input_common: Create input poller and mapping 2021-11-24 20:30:22 -06:00