kornelski / dssim

Image similarity comparison simulating human perception (multiscale SSIM in Rust)
https://kornel.ski/dssim
GNU Affero General Public License v3.0
1.09k stars 70 forks source link

Fix build with gcc8 #48

Closed thiblahute closed 6 years ago

thiblahute commented 6 years ago

Fails with:

../subprojects/dssim/src/dssim.c: In function ‘dssim_preprocess_channel’:
../subprojects/dssim/src/dssim.c:629:34: error: passing argument 3 to restrict-qualified parameter aliases with argument 1 [-Werror=restrict]
        blur(chan->img, tmp, chan->img, width, height);
            ~~~~~~~~~       ~~~~^~~~~
../subprojects/dssim/src/dssim.c:639:38: error: passing argument 3 to restrict-qualified parameter aliases with argument 1 [-Werror=restrict]
    blur(chan->img_sq_blur, tmp, chan->img_sq_blur, width, height);
        ~~~~~~~~~~~~~~~~~       ~~~~^~~~~~~~~~~~~
../subprojects/dssim/src/dssim.c: In function ‘get_img1_img2_blur’:
../subprojects/dssim/src/dssim.c:657:5: error: passing argument 3 to restrict-qualified parameter aliases with argument 1 [-Werror=restrict]
    blur(img2, tmp, img2, width, height);
    ^~~~
kornelski commented 6 years ago

Thanks

thiblahute commented 6 years ago

Thanks you for merging ;) ooc, any chance you make new releases on the C branch?