1
0
Fork 0
forked from suyu/suyu
suyu/src/common
comex 91eb5afd0b 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
..
fs android: Fix size check for content uris 2023-06-26 22:24:18 -04:00
logging backend: Remove usage of explicit operator overload 2023-07-25 22:53:58 -04:00
windows timer_resolution: Set current process to High QoS 2023-03-05 02:36:31 -05:00
x64 x64: cpu_wait: Implement MWAITX for non-MSVC compilers 2023-06-28 01:39:15 -04:00
address_space.cpp
address_space.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
address_space.inc Fix address space allocator slow path to avoid OOB 2023-05-07 15:11:16 +01:00
algorithm.h
alignment.h fssystem: rework for yuzu style 2023-08-15 17:47:40 -04:00
announce_multiplayer_room.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
assert.cpp
assert.h Enable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442) 2022-12-17 17:16:52 -08:00
atomic_helpers.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
atomic_ops.h
bit_cast.h common: make BitCast constexpr 2023-03-07 20:26:56 -05:00
bit_field.h externals: Update to fmt 10 and add format_as formatter for BitField 2023-05-28 15:05:55 -04:00
bit_set.h
bit_util.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
bounded_threadsafe_queue.h bounded_threadsafe_queue: Refactor Pop 2023-03-21 22:33:58 -04:00
cityhash.cpp
cityhash.h
CMakeLists.txt settings: Cleanup 2023-07-21 10:56:55 -04:00
common_funcs.h
common_precompiled_headers.h
common_types.h
concepts.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
container_hash.h container_hash: use climits 2023-03-26 10:24:33 -04:00
demangle.cpp general: Silence -Wshadow{,-uncaptured-local} warnings 2023-07-18 19:31:35 -04:00
demangle.h Move demangle impl to cpp 2023-01-14 05:12:41 +00:00
detached_tasks.cpp general: Silence -Wshadow{,-uncaptured-local} warnings 2023-07-18 19:31:35 -04:00
detached_tasks.h
div_ceil.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
dynamic_library.cpp common: dynamic_library: Add ctor for existing handle. 2023-06-03 00:05:31 -07:00
dynamic_library.h common: dynamic_library: Add ctor for existing handle. 2023-06-03 00:05:31 -07:00
elf.h
error.cpp common: error: Fix for Android. 2023-06-03 00:05:27 -07:00
error.h
expected.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
fiber.cpp general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
fiber.h
fixed_point.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
hash.h
hex_util.cpp
hex_util.h
host_memory.cpp Merge pull request #10508 from yuzu-emu/lime 2023-06-05 21:43:43 -07:00
host_memory.h
input.h input_common: Remove duplicated DriverResult enum 2023-06-28 09:49:47 -06:00
intrusive_list.h common: add intrusive list type 2023-04-29 17:46:26 -04:00
intrusive_red_black_tree.h general: fixes for gcc 13 2023-04-02 19:02:04 -04:00
literals.h
lru_cache.h
lz4_compression.cpp fssystem: rework for yuzu style 2023-08-15 17:47:40 -04:00
lz4_compression.h fssystem: rework for yuzu style 2023-08-15 17:47:40 -04:00
make_unique_for_overwrite.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
math_util.h
memory_detect.cpp
memory_detect.h
microprofile.cpp
microprofile.h
microprofileui.h
multi_level_page_table.cpp
multi_level_page_table.h
multi_level_page_table.inc
nvidia_flags.cpp
nvidia_flags.h
overflow.h kernel: avoid signed overflow UB on MSVC 2023-03-07 19:46:48 -05:00
page_table.cpp Use spans over guest memory where possible instead of copying data. 2023-07-02 23:09:48 +01:00
page_table.h Fixes and workarounds to make UBSan happier on macOS 2023-07-15 12:00:28 -07:00
param_package.cpp
param_package.h
parent_of_member.h
point.h
polyfill_ranges.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
polyfill_thread.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
precompiled_headers.h
quaternion.h
range_map.h Fixes 'Continous' typo 2023-03-29 19:26:12 -07:00
reader_writer_queue.h
ring_buffer.h ring_buffer: Fix const usage on std::span 2023-06-30 13:33:14 -04:00
scm_rev.cpp.in
scm_rev.h
scope_exit.h
scratch_buffer.h Fix ScratchBuffer moves 2023-07-04 16:02:58 +01:00
settings.cpp settings: Add AspectRatio enum, split res scale function 2023-08-15 22:41:50 -04:00
settings.h settings: Add AspectRatio enum, split res scale function 2023-08-15 22:41:50 -04:00
settings_common.cpp general: fix apple clang build 2023-08-09 22:38:37 -04:00
settings_common.h settings_common: Document specializations 2023-07-23 16:21:08 -04:00
settings_enums.h yuzu-qt: Screenshots depend more on the graphics settings 2023-08-16 16:12:42 -04:00
settings_input.cpp
settings_input.h
settings_setting.h general: fix apple clang build 2023-08-09 22:38:37 -04:00
socket_types.h ssl: Reorder inclusions 2023-07-17 15:46:24 -04:00
spin_lock.cpp
spin_lock.h
steady_clock.cpp (wall, native)_clock: Rework NativeClock 2023-06-07 21:44:42 -04:00
steady_clock.h steady_clock: Introduce a real time clock 2023-03-07 21:17:46 -05:00
stream.cpp
stream.h
string_util.cpp common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W. 2023-03-18 22:42:25 -07:00
string_util.h common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W. 2023-03-18 22:42:25 -07:00
swap.h Warnings cleanup for GCC 13 and Clang 16 2023-08-25 19:22:31 -04:00
telemetry.cpp x64: Add detection of monitorx instructions 2023-06-28 01:36:06 -04:00
telemetry.h
thread.cpp
thread.h general: remove atomic signal and wait 2023-06-22 09:25:23 -04:00
thread_queue_list.h
thread_worker.h
threadsafe_queue.h
time_zone.cpp time_zone: Clean up includes 2023-07-12 03:03:03 -04:00
time_zone.h common: Move system time zone string detection 2023-06-05 15:15:11 -04:00
tiny_mt.h
tree.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
typed_address.h general: fixes for gcc 13 2023-04-02 19:02:04 -04:00
uint128.h
unique_function.h
uuid.cpp Fix potentially uninitialized local variable warning 2023-06-09 05:12:22 +05:00
uuid.h
vector_math.h input_common: Add property to invert an axis button 2023-05-05 17:18:35 -06:00
virtual_buffer.cpp
virtual_buffer.h
wall_clock.cpp wall_clock: Increase precision requirements 2023-07-27 18:40:56 -04:00
wall_clock.h core_timing: Fix SingleCore cycle timer 2023-06-07 21:44:42 -04:00
zstd_compression.cpp zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize 2023-03-23 22:16:20 -04:00
zstd_compression.h