mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-03 13:03:22 +00:00
Merge pull request #1092 from lioncash/ignored-qual
General: Resolve -Wignored-qualifiers warnings
This commit is contained in:
commit
fb7964e6b1
1
External/FEXCore/Source/CMakeLists.txt
vendored
1
External/FEXCore/Source/CMakeLists.txt
vendored
@ -286,6 +286,7 @@ function(AddObject Name Type)
|
||||
target_compile_options(${Name}
|
||||
PRIVATE
|
||||
-Wall
|
||||
-Werror=ignored-qualifiers
|
||||
-Werror=implicit-fallthrough
|
||||
|
||||
-Wno-trigraphs
|
||||
|
@ -240,7 +240,7 @@ namespace FEXCore::Context {
|
||||
void DestroyThread(FEXCore::Core::InternalThreadState *Thread);
|
||||
void CleanupAfterFork(FEXCore::Core::InternalThreadState *ExceptForThread);
|
||||
|
||||
std::vector<FEXCore::Core::InternalThreadState*> *const GetThreads() { return &Threads; }
|
||||
std::vector<FEXCore::Core::InternalThreadState*>* GetThreads() { return &Threads; }
|
||||
|
||||
uint8_t GetGPRSize() const { return Config.Is64BitMode ? 8 : 4; }
|
||||
|
||||
|
@ -69,8 +69,8 @@ class DualIntrusiveAllocator final {
|
||||
size_t ListSize() const { return ListCurrentOffset; }
|
||||
size_t ListBackingSize() const { return MemorySize; }
|
||||
|
||||
uintptr_t const DataBegin() const { return Data; }
|
||||
uintptr_t const ListBegin() const { return List; }
|
||||
uintptr_t DataBegin() const { return Data; }
|
||||
uintptr_t ListBegin() const { return List; }
|
||||
|
||||
void Reset() { DataCurrentOffset = 0; ListCurrentOffset = 0; }
|
||||
|
||||
@ -159,7 +159,7 @@ public:
|
||||
stream.write((char*)GetListData(), ListSize);
|
||||
}
|
||||
|
||||
size_t GetInlineSize() {
|
||||
size_t GetInlineSize() const {
|
||||
static_assert(sizeof(*this) == 40);
|
||||
return sizeof(*this) + DataSize + ListSize;
|
||||
}
|
||||
@ -317,11 +317,11 @@ public:
|
||||
return iterator(reinterpret_cast<uintptr_t>(GetListData()), reinterpret_cast<uintptr_t>(GetData()), Wrapped);
|
||||
}
|
||||
|
||||
uintptr_t const GetData() const {
|
||||
uintptr_t GetData() const {
|
||||
return reinterpret_cast<uintptr_t>(IRDataInternal ? IRDataInternal : InlineData);
|
||||
}
|
||||
|
||||
uintptr_t const GetListData() const {
|
||||
uintptr_t GetListData() const {
|
||||
return reinterpret_cast<uintptr_t>(ListDataInternal ? ListDataInternal : &InlineData[DataSize]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user