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/ZString.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/ZString.cpp')
| -rw-r--r-- | ZAPD/ZString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZString.cpp b/ZAPD/ZString.cpp index 67de99b..b545604 100644 --- a/ZAPD/ZString.cpp +++ b/ZAPD/ZString.cpp @@ -34,7 +34,7 @@ std::string ZString::GetBodySourceCode() const return StringHelper::Sprintf("\t\"%s\"", strData.data()); } -std::string ZString::GetSourceOutputCode(const std::string& prefix) +std::string ZString::GetSourceOutputCode([[maybe_unused]] const std::string& prefix) { parent->AddDeclarationArray(rawDataIndex, DeclarationAlignment::None, GetRawDataSize(), GetSourceTypeName(), name, 0, GetBodySourceCode()); @@ -42,7 +42,7 @@ std::string ZString::GetSourceOutputCode(const std::string& prefix) return ""; } -std::string ZString::GetSourceOutputHeader(const std::string& prefix) +std::string ZString::GetSourceOutputHeader([[maybe_unused]] const std::string& prefix) { return StringHelper::Sprintf("#define %s_macro \"%s\"", name.c_str(), strData.data()); } |
