Skip to content

Commit 06d39df

Browse files
authored
Fix warnings (#1864)
1 parent 9999b89 commit 06d39df

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

expose.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ extern "C"
187187
}
188188
else if(file_format==FileFormat::GGUF_GENERIC)
189189
{
190-
printf("\n---\nIdentified as GGUF model.\nAttempting to Load...\n---\n", file_format);
190+
printf("\n---\nIdentified as GGUF model.\nAttempting to Load...\n---\n");
191191
}
192192
else if(file_format==FileFormat::GGML || file_format==FileFormat::GGHF || file_format==FileFormat::GGJT || file_format==FileFormat::GGJT_2 || file_format==FileFormat::GGJT_3)
193193
{

gpttype_adapter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3754,7 +3754,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
37543754
if (debugmode==1 && !is_quiet)
37553755
{
37563756
std::string outstr = "";
3757-
printf("\n\n[Debug: Dump %d Raw Input Tokens]\n",embd_inp.size());
3757+
printf("\n\n[Debug: Dump %zu Raw Input Tokens]\n",embd_inp.size());
37583758
outstr += get_tok_vec_str(embd_inp);
37593759
printf("%s\n", RemoveBell(outstr).c_str());
37603760
}
@@ -3988,7 +3988,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
39883988
int32_t decode_status2 = llama_decode(llama_ctx_v4, smallbatch.batch);
39893989
if(debugmode==1 && !is_quiet)
39903990
{
3991-
printf("Retry chunk: %d at %d... status: %s\n",chunk.size(),temp_past,(decode_status2==0?"ok":"fail"));
3991+
printf("Retry chunk: %zu at %d... status: %s\n",chunk.size(),temp_past,(decode_status2==0?"ok":"fail"));
39923992
}
39933993
evalres = (evalres && (decode_status2==0));
39943994
temp_past += chunk.size();

otherarch/sdcpp/sdtype_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
916916

917917
if(!sd_is_quiet && sddebugmode==1)
918918
{
919-
printf("\nImageGen References: RefImg=%d Wan=%d Photomaker=%d\n",reference_imgs.size(),wan_imgs.size(),photomaker_imgs.size());
919+
printf("\nImageGen References: RefImg=%zu Wan=%zu Photomaker=%zu\n",reference_imgs.size(),wan_imgs.size(),photomaker_imgs.size());
920920
}
921921
}
922922

tools/mtmd/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5264,7 +5264,7 @@ bool clip_model_quantize(const char * fname_inp, const char * fname_out, const i
52645264
const int64_t blck_size = ggml_blck_size(type);
52655265
if(d==0 && cur->ne[d] % blck_size != 0)
52665266
{
5267-
printf("\nSkipping %s because %d is not divisible by %d\n",name.c_str(),cur->ne[d],blck_size);
5267+
printf("\nSkipping %s because %" PRId64 " is not divisible by %ld\n",name.c_str(),cur->ne[d],blck_size);
52685268
quantize = false;
52695269
break;
52705270
}

0 commit comments

Comments
 (0)