What steps will reproduce the problem?
1. Build openjpeg
What is the expected output?
No warning messages occur.
What do you see instead?
libopenjpeg/tcd.c: In function 'tcd_decode_tile':
libopenjpeg/tcd.c:1941:14: warning: incompatible implicit declaration of
built-in function 'lrintf'
libopenjpeg/tcd.c: In function 'tcd_dc_level_shift_decode':
libopenjpeg/tcd.c:3090:33: warning: incompatible implicit declaration of
built-in function 'lrintf'
What version of the product are you using? On what operating system?
This applies to both the current tip (via malaterre's github mirror) and
Gentoo's media-libs/openjpeg-1.5.0 package. This failure happens on my
~amd64-linux Gentoo prefix box.
Please provide any additional information below.
I believe the warning arises because lrintf() is a C99 function. I've attached
a patch that uses C99 mode to #include <math.h>, which eliminates the warning.
The downstream bug is
https://bugs.gentoo.org/show_bug.cgi?id=411519
Original issue reported on code.google.com by pal...@gmail.com on 11 Apr 2012 at 4:20
Original issue reported on code.google.com by
pal...@gmail.com
on 11 Apr 2012 at 4:20Attachments: