Compare commits

...

3 Commits

Author SHA1 Message Date
tTh
4f41ae399b kill warning, better return value 2024-07-18 08:57:50 +02:00
tTh
7aab0e030a add molly-guard message 2024-07-18 08:56:48 +02:00
tTh
e841207907 remove useless msg 2024-07-18 08:55:57 +02:00
3 changed files with 11 additions and 4 deletions

View File

@ -14,6 +14,7 @@
*/
int Image_egalise_cos01(Image_Desc *source, Image_Desc *but, int k)
{
(void)k; /* WARNING KILLER */
int lut[256], uc, idx, foo;
float fidx;
@ -34,11 +35,16 @@ for (idx=0; idx<256; idx++) {
}
Image_LUT_mono(source, but, lut);
return FUNC_IS_BETA;
return OLL_KORRECT;
}
/*::------------------------------------------------------------------::*/
/*
* new: Fri Sep 15 20:32:12 UTC 2023
* inspired by the same func in FloatImg
*/
int Image_egalise_cos010(Image_Desc *source, Image_Desc *but, int k)
{
(void)k; /* WARNING KILLER */
int lut[256], uc, idx, foo;
float fidx;
@ -59,7 +65,7 @@ for (idx=0; idx<256; idx++) {
}
Image_LUT_mono(source, but, lut);
return FUNC_IS_BETA;
return OLL_KORRECT;
}
/*::------------------------------------------------------------------::*/
/*

View File

@ -442,7 +442,7 @@ switch (commande)
}
if (foo) {
fprintf(stderr, "%s: return code is %d\n", __FILE__, foo);
/* fprintf(stderr, "%s: return code is %d\n", __FILE__, foo); */
Image_print_error(argv[0], foo);
}

View File

@ -42,7 +42,7 @@ mot_clef mots_clef[] =
/*::------------------------------------------------------------------::*/
void usage()
{
fprintf(stderr, "* tga_equalize v 0.0.24 [%s] (dwtfywl) tonton Th\n",
fprintf(stderr, "* tga_equalize v 0.0.25 [%s] (dwtfywl) tonton Th\n",
TGA_OUTILS_VERSION);
fprintf(stderr, " compiled %s at %s\n", __DATE__, __TIME__);
fprintf(stderr, "usage:\n\ttga_equalize avant.tga mode apres.tga [params]\n");
@ -129,6 +129,7 @@ switch (commande)
default:
fprintf(stderr, "unexpected command #%d\n", commande);
foo=-1;
break;
}