瀏覽代碼

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 <slarengh@gmail.com>

* Remove false now that we have abort

---------

Co-authored-by: Diego Devesa <slarengh@gmail.com>
Michael Giba 4 月之前
父節點
當前提交
b108e42904
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/mtmd/clip.cpp

+ 2 - 2
tools/mtmd/clip.cpp

@@ -3581,10 +3581,10 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str
         }
         }
 
 
         return true;
         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) {
 ggml_tensor * clip_get_newline_tensor(const struct clip_ctx * ctx) {