]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : fix -Werror=return-type in clip.cpp so ci/run.sh can run without issue (#15221)
authorMichael Giba <redacted>
Thu, 21 Aug 2025 10:06:46 +0000 (05:06 -0500)
committerGitHub <redacted>
Thu, 21 Aug 2025 10:06:46 +0000 (12:06 +0200)
* Fix -Werror=return-type so ci/run.sh can run

* Update tools/mtmd/clip.cpp

Co-authored-by: Diego Devesa <redacted>
* Remove false now that we have abort

---------

Co-authored-by: Diego Devesa <redacted>
tools/mtmd/clip.cpp

index a32fe84fa7112ff877edf7a3170344c77a52f1ef..1676c328364f552bbf2f3ea33b1c15a56102830e 100644 (file)
@@ -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) {