mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-08 03:44:46 +00:00
Fix clang warning in gguf_check_reserved_keys (llama/12686)
* Fix clang warning in gguf_check_reserved_keys Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Fix typo Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> --------- Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
This commit is contained in:
parent
801d6bd809
commit
6cb2b86581
@ -932,6 +932,7 @@ static void gguf_check_reserved_keys(const std::string & key, const T val) {
|
||||
if constexpr (std::is_same<T, uint32_t>::value) {
|
||||
GGML_ASSERT(val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT " must be power of 2");
|
||||
} else {
|
||||
GGML_UNUSED(val);
|
||||
GGML_ABORT(GGUF_KEY_GENERAL_ALIGNMENT " must be type u32");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user