summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-01-15 05:33:33 -0300
committerGravatar ReinUsesLisp2021-01-15 16:31:19 -0300
commitf8650a9580cf61cf97011511d8a1fd53346ac99c (patch)
treec9860b9bcbc5b308c806977d603e67d8ae996c14 /src/common
parentcommon/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINIT (diff)
downloadyuzu-f8650a9580cf61cf97011511d8a1fd53346ac99c.tar.gz
yuzu-f8650a9580cf61cf97011511d8a1fd53346ac99c.tar.xz
yuzu-f8650a9580cf61cf97011511d8a1fd53346ac99c.zip
core: Silence Wclass-memaccess warnings
This requires making several types trivial and properly initialize them whenever they are called.
Diffstat (limited to '')
-rw-r--r--src/common/uuid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/uuid.h b/src/common/uuid.h
index 4ab9a25f0..2e7a18405 100644
--- a/src/common/uuid.h
+++ b/src/common/uuid.h
@@ -14,8 +14,8 @@ constexpr u128 INVALID_UUID{{0, 0}};
14 14
15struct UUID { 15struct UUID {
16 // UUIDs which are 0 are considered invalid! 16 // UUIDs which are 0 are considered invalid!
17 u128 uuid = INVALID_UUID; 17 u128 uuid;
18 constexpr UUID() = default; 18 UUID() = default;
19 constexpr explicit UUID(const u128& id) : uuid{id} {} 19 constexpr explicit UUID(const u128& id) : uuid{id} {}
20 constexpr explicit UUID(const u64 lo, const u64 hi) : uuid{{lo, hi}} {} 20 constexpr explicit UUID(const u64 lo, const u64 hi) : uuid{{lo, hi}} {}
21 21