yuzu/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 general: Format licenses as per SPDX guidelines 2022-10-06 21:00:54 +02:00
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 General: Fix compilation for GCC 2022-10-06 21:00:53 +02:00
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 common/assert: rework ASSERT handling to avoid std::function usage 2022-06-13 20:09:32 -04:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
cityhash.h chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
CMakeLists.txt settings: Cleanup 2023-07-21 10:56:55 -04:00
common_funcs.h Initial ARM64 support 2022-11-09 16:58:49 -05:00
common_precompiled_headers.h CMake: Consolidate common PCH headers 2022-11-30 18:30:30 -05:00
common_types.h chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
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 chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
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 common: consolidate ELF structure definitions 2022-06-05 09:42:05 -04:00
error.cpp common: error: Fix for Android. 2023-06-03 00:05:27 -07:00
error.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
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 common/fiber: make fibers easier to use 2022-07-02 12:33:49 -04:00
fixed_point.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
hash.h Refactor VideoCore to use AS sepparate from Channel. 2022-10-06 21:00:52 +02:00
hex_util.cpp chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
hex_util.h chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
host_memory.cpp Merge pull request #10508 from yuzu-emu/lime 2023-06-05 21:43:43 -07:00
host_memory.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
lru_cache.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
memory_detect.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
memory_detect.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
microprofile.cpp chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
microprofile.h code: dodge PAGE_SIZE #define 2022-08-19 16:08:40 -07:00
microprofileui.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
multi_level_page_table.cpp general: Format licenses as per SPDX guidelines 2022-10-06 21:00:54 +02:00
multi_level_page_table.h General: address feedback 2022-10-06 21:00:54 +02:00
multi_level_page_table.inc general: Format licenses as per SPDX guidelines 2022-10-06 21:00:54 +02:00
nvidia_flags.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
nvidia_flags.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
param_package.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
parent_of_member.h Silence std::aligned_storage warnings as it's deprecated in C++23, 2022-09-01 16:50:41 +01:00
point.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 CMake: Consolidate common PCH headers 2022-11-30 18:30:30 -05:00
quaternion.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
range_map.h Fixes 'Continous' typo 2023-03-29 19:26:12 -07:00
reader_writer_queue.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
ring_buffer.h ring_buffer: Fix const usage on std::span 2023-06-30 13:33:14 -04:00
scm_rev.cpp.in chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
scm_rev.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
scope_exit.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
settings_input.h Configuration: Add per-game input profiles 2022-11-20 14:06:31 -05:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
spin_lock.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
stream.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
thread.cpp Core: Fix tests. 2022-06-28 01:10:55 +02:00
thread.h general: remove atomic signal and wait 2023-06-22 09:25:23 -04:00
thread_queue_list.h chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
thread_worker.h general: fix compile for Apple Clang 2022-11-22 22:22:28 -05:00
threadsafe_queue.h general: fix compile for Apple Clang 2022-11-22 22:22:28 -05:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 common: remove unneeded x86-specific header 2022-08-16 15:19:57 -06:00
unique_function.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
uuid.cpp Fix potentially uninitialized local variable warning 2023-06-09 05:12:22 +05:00
uuid.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
vector_math.h input_common: Add property to invert an axis button 2023-05-05 17:18:35 -06:00
virtual_buffer.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
virtual_buffer.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
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 general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00