Skip to content

Commit caa9249

Browse files
committed
common : fix compile warning
1 parent da5eaef commit caa9249

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common/sampling.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,15 @@ std::string llama_sampling_order_print(const llama_sampling_params & params) {
113113
default : break;
114114
}
115115
}
116-
} else result += "-> mirostat ";
116+
} else {
117+
result += "-> mirostat ";
118+
}
117119

118120
return result;
119121
}
120122

121123
// no reasons to expose this function in header
122-
void sampler_queue(
124+
static void sampler_queue(
123125
struct llama_context * ctx_main,
124126
const llama_sampling_params & params,
125127
llama_token_data_array & cur_p,

0 commit comments

Comments
 (0)