Skip to content

Commit c35339a

Browse files
committed
Fix clang warning in gguf_check_reserved_keys
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 35782ae commit c35339a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml/src/gguf.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,8 @@ static void gguf_check_reserved_keys(const std::string & key, const T val) {
934934
} else {
935935
GGML_ABORT(GGUF_KEY_GENERAL_ALIGNMENT " must be type u32");
936936
}
937+
} else {
938+
GGML_UNUSED(val);
937939
}
938940
}
939941

0 commit comments

Comments
 (0)