summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-07-14 12:46:20 +0100
committerSimon Ser <contact@emersion.fr>2021-09-17 16:03:48 +0000
commite0d4403e78a7af8f4be4110ae25e9c3d1ac93a78 (patch)
tree1f771e22591bde8d411f1f58e2ec63807cef45ed
parent5f5e752f15acff7f39c861f2defed8ca10fa041c (diff)
downloadpixman-e0d4403e78a7af8f4be4110ae25e9c3d1ac93a78.tar.gz
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)')
-rw-r--r--pixman/pixman-bits-image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c
index a0d9441..6f65420 100644
--- a/pixman/pixman-bits-image.c
+++ b/pixman/pixman-bits-image.c
@@ -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;