Skip to content

Commit dd189d8

Browse files
ggerganovarthw
authored andcommitted
tests : fix compile warnings for unreachable code (ggml-org#9185)
ggml-ci
1 parent 33798f1 commit dd189d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test-sampling.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ static void test_sampler_queue(
166166
for (auto s : samplers_sequence) {
167167
switch (s){
168168
case 'k': llama_sample_top_k (nullptr, &candidates_p, top_k, 1); break;
169-
case 'f': GGML_ABORT("tail_free test not implemented"); break;
170-
case 'y': GGML_ABORT("typical test not implemented"); break;
169+
case 'f': GGML_ABORT("tail_free test not implemented");
170+
case 'y': GGML_ABORT("typical test not implemented");
171171
case 'p': llama_sample_top_p (nullptr, &candidates_p, top_p, 1); break;
172172
case 'm': llama_sample_min_p (nullptr, &candidates_p, min_p, 1); break;
173-
case 't': GGML_ABORT("temperature test not implemented"); break;
174-
default : GGML_ABORT("Unknown sampler"); break;
173+
case 't': GGML_ABORT("temperature test not implemented");
174+
default : GGML_ABORT("Unknown sampler");
175175
}
176176

177177
llama_sample_softmax(nullptr, &candidates_p); // make sure tokens are sorted for tests

0 commit comments

Comments
 (0)