]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
sam : add default case for unsupported prompt types (#1263)
authorDaniel Bevenius <redacted>
Fri, 6 Jun 2025 16:58:10 +0000 (18:58 +0200)
committerGitHub <redacted>
Fri, 6 Jun 2025 16:58:10 +0000 (18:58 +0200)
commita1761cd64ce4a75a9770a954a013422c7910db8b
treedbd720e81139e885fa3f30b1bcd8e68aea5de64f
parent988abe2ab374544af09d42aa7491dceaf6be04a1
sam : add default case for unsupported prompt types (#1263)

This commit adds a default case in the `embed_prompt_sparse` lambda
function.

The motivation for this change is that currently the following warning
is generated when compiling:
```console
/ggml/examples/sam/sam.cpp: In lambda function:
/ggml/examples/sam/sam.cpp:1499:5: warning:
control reaches end of non-void function [-Wreturn-type]
 1499 |     }();
      |     ^
```
examples/sam/sam.cpp