Skip to content
Snippets Groups Projects
Commit e0d4403e authored by Alexander Richardson's avatar Alexander Richardson Committed by Simon Ser
Browse files

Fix -Wincompatible-function-pointer-types warning

Adding const to the return type does nothing and means that the function
pointer types do not match exactly:

error: incompatible function pointer types passing 'const float (int, int)' to parameter of type 'dither_factor_t' (aka 'float (*)(int, int)')
parent 5f5e752f
No related branches found
No related tags found
No related merge requests found
......@@ -1055,14 +1055,14 @@ dest_write_back_narrow (pixman_iter_t *iter)
iter->y++;
}
static const float
static float
dither_factor_blue_noise_64 (int x, int y)
{
float m = dither_blue_noise_64x64[((y & 0x3f) << 6) | (x & 0x3f)];
return m * (1. / 4096.f) + (1. / 8192.f);
}
static const float
static float
dither_factor_bayer_8 (int x, int y)
{
uint32_t m;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment