mirror of
https://github.com/zeldaret/botw
synced 2026-06-08 12:17:14 -04:00
Enable -Wdeprecated warnings and fix them
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
add_executable(uking)
|
||||
target_include_directories(uking PRIVATE src)
|
||||
target_compile_options(uking PRIVATE -fno-rtti -fno-exceptions)
|
||||
target_compile_options(uking PRIVATE -Wall -Wextra)
|
||||
target_compile_options(uking PRIVATE -Wall -Wextra -Wdeprecated)
|
||||
target_compile_options(uking PRIVATE -fno-strict-aliasing)
|
||||
target_compile_options(uking PRIVATE -Wno-invalid-offsetof)
|
||||
|
||||
|
||||
+1
-1
Submodule lib/sead updated: d7bf1a5232...7bc4c09071
@@ -17,6 +17,17 @@ public:
|
||||
/// Destructor that automatically releases any acquired BaseProc.
|
||||
~ActorLinkConstDataAccess();
|
||||
|
||||
ActorLinkConstDataAccess(const ActorLinkConstDataAccess&) = delete;
|
||||
ActorLinkConstDataAccess& operator=(const ActorLinkConstDataAccess&) = delete;
|
||||
ActorLinkConstDataAccess(ActorLinkConstDataAccess&& other) noexcept {
|
||||
*this = std::move(other);
|
||||
}
|
||||
ActorLinkConstDataAccess& operator=(ActorLinkConstDataAccess&& other) noexcept {
|
||||
std::swap(mAcquired, other.mAcquired);
|
||||
std::swap(mProc, other.mProc);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Acquire a BaseProc. This increments its reference count.
|
||||
/// If an actor was already acquired, it is released.
|
||||
bool acquire(BaseProc* proc);
|
||||
|
||||
@@ -21,6 +21,9 @@ class Handle;
|
||||
class ILoadRequest {
|
||||
SEAD_RTTI_BASE(ILoadRequest)
|
||||
public:
|
||||
ILoadRequest() = default;
|
||||
ILoadRequest(const ILoadRequest&) = default;
|
||||
ILoadRequest& operator=(const ILoadRequest&) = default;
|
||||
virtual ~ILoadRequest();
|
||||
|
||||
bool _8 = false;
|
||||
@@ -34,6 +37,8 @@ class LoadRequest : public ILoadRequest {
|
||||
public:
|
||||
LoadRequest();
|
||||
LoadRequest(s32 load_data_alignment, u32 arg_c, bool arg_20);
|
||||
LoadRequest(const LoadRequest&) = default;
|
||||
LoadRequest& operator=(const LoadRequest&) = default;
|
||||
~LoadRequest() override = default;
|
||||
|
||||
bool _20 = false;
|
||||
@@ -64,6 +69,8 @@ class SimpleLoadRequest : public ILoadRequest {
|
||||
public:
|
||||
SimpleLoadRequest();
|
||||
~SimpleLoadRequest() override = default;
|
||||
SimpleLoadRequest(const SimpleLoadRequest&) = default;
|
||||
SimpleLoadRequest& operator=(const SimpleLoadRequest&) = default;
|
||||
|
||||
sead::SafeString mPath;
|
||||
void* _30 = nullptr;
|
||||
@@ -75,6 +82,8 @@ class SimplePackedLoadRequest : public ILoadRequest {
|
||||
public:
|
||||
SimplePackedLoadRequest();
|
||||
~SimplePackedLoadRequest() override = default;
|
||||
SimplePackedLoadRequest(const SimplePackedLoadRequest&) = default;
|
||||
SimplePackedLoadRequest& operator=(const SimplePackedLoadRequest&) = default;
|
||||
|
||||
Handle* mPack = nullptr;
|
||||
void* _30 = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user