VERY experimental Nintendo Switch 2 emulator
C++
general: fix compilation on GCC 12
Liamf3fd1038bb68
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cppindex 93f7844183..78e56bbbd2 100644--- a/src/core/file_sys/content_archive.cpp+++ b/src/core/file_sys/content_archive.cpp@@ -419,7 +419,7 @@ std::optional<Core::Crypto::Key128> NCA::GetKeyAreaKey(NCASectionCryptoType typeCore::Crypto::Mode::ECB);cipher.Transcode(key_area.data(), key_area.size(), key_area.data(), Core::Crypto::Op::Decrypt);- Core::Crypto::Key128 out;+ Core::Crypto::Key128 out{};if (type == NCASectionCryptoType::XTS) {std::copy(key_area.begin(), key_area.begin() + 0x10, out.begin());} else if (type == NCASectionCryptoType::CTR || type == NCASectionCryptoType::BKTR) {diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.h b/src/shader_recompiler/frontend/maxwell/control_flow.hindex 2487b9b0b6..1ce45b3a50 100644--- a/src/shader_recompiler/frontend/maxwell/control_flow.h+++ b/src/shader_recompiler/frontend/maxwell/control_flow.h@@ -58,7 +58,7 @@ public:[[nodiscard]] Stack Remove(Token token) const;private:- boost::container::small_vector<StackEntry, 3> entries;+ std::vector<StackEntry> entries;};struct IndirectBranch {