Skip to content

Commit b108e42

Browse files
michaelgibaslaren
andauthored
ci : fix -Werror=return-type in clip.cpp so ci/run.sh can run without issue (ggml-org#15221)
* Fix -Werror=return-type so ci/run.sh can run * Update tools/mtmd/clip.cpp Co-authored-by: Diego Devesa <[email protected]> * Remove false now that we have abort --------- Co-authored-by: Diego Devesa <[email protected]>
1 parent 245be73 commit b108e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/mtmd/clip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3581,10 +3581,10 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, str
35813581
}
35823582

35833583
return true;
3584-
3584+
} else {
3585+
GGML_ABORT("Unknown image preprocessing type");
35853586
}
35863587

3587-
GGML_ASSERT(false && "Unknown image preprocessing type");
35883588
}
35893589

35903590
ggml_tensor * clip_get_newline_tensor(const struct clip_ctx * ctx) {

0 commit comments

Comments
 (0)