mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-12 15:06:41 +00:00
ams: address some warnings when building with gcc-12
This commit is contained in:
parent
4db485083b
commit
187745abd5
4 changed files with 6 additions and 4 deletions
|
@ -843,7 +843,7 @@ namespace ams::ncm {
|
||||||
R_SUCCEED_IF(m_header.has_value());
|
R_SUCCEED_IF(m_header.has_value());
|
||||||
|
|
||||||
/* Get our header. */
|
/* Get our header. */
|
||||||
PatchMetaExtendedDataHeader header;
|
PatchMetaExtendedDataHeader header{};
|
||||||
R_TRY(this->GetHeader(std::addressof(header)));
|
R_TRY(this->GetHeader(std::addressof(header)));
|
||||||
|
|
||||||
/* Set our header. */
|
/* Set our header. */
|
||||||
|
|
|
@ -148,6 +148,8 @@ init_libnx_shim.os.horizon.o: CXXFLAGS += -fno-lto
|
||||||
|
|
||||||
result_get_name.o: CXXFLAGS += -fno-lto
|
result_get_name.o: CXXFLAGS += -fno-lto
|
||||||
|
|
||||||
|
crypto_sha256_generator.o: CXXFLAGS += -fno-lto
|
||||||
|
|
||||||
spl_secure_monitor_api.os.generic.o: CXXFLAGS += -I$(ATMOSPHERE_LIBRARIES_DIR)/libexosphere/include
|
spl_secure_monitor_api.os.generic.o: CXXFLAGS += -I$(ATMOSPHERE_LIBRARIES_DIR)/libexosphere/include
|
||||||
fs_id_string_impl.os.generic.o: CXXFLAGS += -I$(ATMOSPHERE_LIBRARIES_DIR)/libexosphere/include
|
fs_id_string_impl.os.generic.o: CXXFLAGS += -I$(ATMOSPHERE_LIBRARIES_DIR)/libexosphere/include
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,9 @@ namespace ams::crypto {
|
||||||
};
|
};
|
||||||
static constexpr size_t Asn1IdentifierSize = util::size(Asn1Identifier);
|
static constexpr size_t Asn1IdentifierSize = util::size(Asn1Identifier);
|
||||||
private:
|
private:
|
||||||
Impl m_impl;
|
Impl m_impl{};
|
||||||
public:
|
public:
|
||||||
Sha256Generator() { /* ... */ }
|
Sha256Generator() = default;
|
||||||
|
|
||||||
void Initialize() {
|
void Initialize() {
|
||||||
m_impl.Initialize();
|
m_impl.Initialize();
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
namespace ams::crypto {
|
namespace ams::crypto {
|
||||||
|
|
||||||
void GenerateSha256(void *dst, size_t dst_size, const void *src, size_t src_size) {
|
void GenerateSha256(void *dst, size_t dst_size, const void *src, size_t src_size) {
|
||||||
Sha256Generator gen;
|
Sha256Generator gen{};
|
||||||
|
|
||||||
gen.Initialize();
|
gen.Initialize();
|
||||||
gen.Update(src, src_size);
|
gen.Update(src, src_size);
|
||||||
|
|
Loading…
Reference in a new issue