Skip to content

Commit 866da9b

Browse files
add void
1 parent 4b82eec commit 866da9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ggml/include/ggml-opt.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extern "C" {
142142

143143
// ====== Optimization Result ======
144144

145-
GGML_API ggml_opt_result_t ggml_opt_result_init();
145+
GGML_API ggml_opt_result_t ggml_opt_result_init(void);
146146
GGML_API void ggml_opt_result_free(ggml_opt_result_t result);
147147
GGML_API void ggml_opt_result_reset(ggml_opt_result_t result);
148148

src/llama.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ struct llama_cparams {
26062606
};
26072607

26082608
// TODO: separate into "llama_layer_enc" and "llama_layer_dec"
2609-
// the code in llama_save_model_to_file assumes llama_layer to consist exclusively of struct ggml_tensor *
2609+
// the code in llama_save_model_to_file and llama_opt_init assumes llama_layer to consist exclusively of struct ggml_tensor *
26102610
struct llama_layer {
26112611
llama_layer() {
26122612
// initialize all pointers to NULL

0 commit comments

Comments
 (0)