diff options
| author | Random <28494085+Random06457@users.noreply.github.com> | 2021-09-12 22:25:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 16:25:37 -0400 |
| commit | 90662f3cbade844c8edc3943ab8252e334b6166a (patch) | |
| tree | cc794d60659a4640d36af52b580228891515e0dc /ZAPD/ZResource.cpp | |
| parent | 5da00201f261f8ac4927064f1390e886672cda58 (diff) | |
Fix compilation with -Wextra (#164)
* add -Wextra -Werror
* remove void arg in GfxdCallback_FormatSingleEntry
* mark CRC32 functions as maybe_unused
* remove useless comment
* fix clang warnings
* replace (void) with [[maybe_unused]]
* run make format
Diffstat (limited to 'ZAPD/ZResource.cpp')
| -rw-r--r-- | ZAPD/ZResource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ZAPD/ZResource.cpp b/ZAPD/ZResource.cpp index 15b67a1..bec6cfe 100644 --- a/ZAPD/ZResource.cpp +++ b/ZAPD/ZResource.cpp @@ -114,7 +114,7 @@ void ZResource::ParseXML(tinyxml2::XMLElement* reader) } } -void ZResource::Save(const fs::path& outFolder) +void ZResource::Save([[maybe_unused]] const fs::path& outFolder) { } @@ -177,12 +177,12 @@ std::string ZResource::GetBodySourceCode() const return "ERROR"; } -std::string ZResource::GetSourceOutputCode(const std::string& prefix) +std::string ZResource::GetSourceOutputCode([[maybe_unused]] const std::string& prefix) { return ""; } -std::string ZResource::GetSourceOutputHeader(const std::string& prefix) +std::string ZResource::GetSourceOutputHeader([[maybe_unused]] const std::string& prefix) { return ""; } @@ -191,7 +191,7 @@ void ZResource::ParseRawData() { } -void ZResource::DeclareReferences(const std::string& prefix) +void ZResource::DeclareReferences([[maybe_unused]] const std::string& prefix) { } |
