From b108e429043ee5c9fc8fa4957a0a52c3e490d5c9 Mon Sep 17 00:00:00 2001 From: Michael Giba Date: Thu, 21 Aug 2025 05:06:46 -0500 Subject: [PATCH] ci : fix -Werror=return-type in clip.cpp so ci/run.sh can run without issue (#15221) * Fix -Werror=return-type so ci/run.sh can run * Update tools/mtmd/clip.cpp Co-authored-by: Diego Devesa * Remove false now that we have abort --------- Co-authored-by: Diego Devesa --- tools/mtmd/clip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mtmd/clip.cpp b/tools/mtmd/clip.cpp index a32fe84fa..1676c3283 100644 --- a/tools/mtmd/clip.cpp +++ b/tools/mtmd/clip.cpp @@ -3581,10 +3581,10 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str } return true; - + } else { + GGML_ABORT("Unknown image preprocessing type"); } - GGML_ASSERT(false && "Unknown image preprocessing type"); } ggml_tensor * clip_get_newline_tensor(const struct clip_ctx * ctx) {