Skip to content

Commit 6cb2b86

Browse files
yeahdongcnggerganov
authored andcommitted
Fix clang warning in gguf_check_reserved_keys (llama/12686)
* Fix clang warning in gguf_check_reserved_keys Signed-off-by: Xiaodong Ye <[email protected]> * Fix typo Signed-off-by: Xiaodong Ye <[email protected]> --------- Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 801d6bd commit 6cb2b86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/gguf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ static void gguf_check_reserved_keys(const std::string & key, const T val) {
932932
if constexpr (std::is_same<T, uint32_t>::value) {
933933
GGML_ASSERT(val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT " must be power of 2");
934934
} else {
935+
GGML_UNUSED(val);
935936
GGML_ABORT(GGUF_KEY_GENERAL_ALIGNMENT " must be type u32");
936937
}
937938
}

0 commit comments

Comments
 (0)