noobdoesre / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

incompatible implicit declaration of built-in function 'lrintf' #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 21 May 2012 at 9:15

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1682.

Original comment by mathieu.malaterre on 21 May 2012 at 9:23