aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordivinity76 <hans@loltek.net>2025-11-24 04:10:01 +0100
committerGitHub <noreply@github.com>2025-11-24 04:10:01 +0100
commit89a364c8bb10f00c8583cbeb04234e9cbdc1a815 (patch)
tree5919f75b0aed7e49bab4aa0f3505dee79c535a91 /src
parent2aa6216c65ce68b88c46c0e4f12a38dc94c36b7a (diff)
silence -Wswitch-enum
compiling with clang, https://clang.llvm.org/docs/DiagnosticsReference.html#wswitch-enum ``` /home/hans/projects/StormLib/src/SFileOpenArchive.cpp:539:16: warning: 4 enumeration values not handled in switch: 'MapTypeNotChecked', 'MapTypeNotRecognized', 'MapTypeAviFile'... [-Wswitch] switch(MapType) ^~~~~~~ 1 warning generated. ```
Diffstat (limited to 'src')
-rw-r--r--src/SFileOpenArchive.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SFileOpenArchive.cpp b/src/SFileOpenArchive.cpp
index 58f4d01..0a5d38e 100644
--- a/src/SFileOpenArchive.cpp
+++ b/src/SFileOpenArchive.cpp
@@ -547,6 +547,9 @@ bool WINAPI SFileOpenArchive(
ha->dwValidFileFlags = MPQ_FILE_VALID_FLAGS_W3X;
ha->dwFlags |= MPQ_FLAG_WAR3_MAP;
break;
+ default:
+ // silence -Wswitch-enum
+ break;
}
// Set the size of file sector. Be sure to check for integer overflow