kill warning, better return value
This commit is contained in:
parent
7aab0e030a
commit
4f41ae399b
@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
int Image_egalise_cos01(Image_Desc *source, Image_Desc *but, int k)
|
int Image_egalise_cos01(Image_Desc *source, Image_Desc *but, int k)
|
||||||
{
|
{
|
||||||
|
(void)k; /* WARNING KILLER */
|
||||||
int lut[256], uc, idx, foo;
|
int lut[256], uc, idx, foo;
|
||||||
float fidx;
|
float fidx;
|
||||||
|
|
||||||
@ -34,11 +35,16 @@ for (idx=0; idx<256; idx++) {
|
|||||||
}
|
}
|
||||||
Image_LUT_mono(source, but, lut);
|
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)
|
int Image_egalise_cos010(Image_Desc *source, Image_Desc *but, int k)
|
||||||
{
|
{
|
||||||
|
(void)k; /* WARNING KILLER */
|
||||||
int lut[256], uc, idx, foo;
|
int lut[256], uc, idx, foo;
|
||||||
float fidx;
|
float fidx;
|
||||||
|
|
||||||
@ -59,7 +65,7 @@ for (idx=0; idx<256; idx++) {
|
|||||||
}
|
}
|
||||||
Image_LUT_mono(source, but, lut);
|
Image_LUT_mono(source, but, lut);
|
||||||
|
|
||||||
return FUNC_IS_BETA;
|
return OLL_KORRECT;
|
||||||
}
|
}
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user