[unixODBC-support] Error Message when making unixODBC on Solaris 10

Nick Gorham nick.gorham at easysoft.com
Wed Apr 16 17:47:05 BST 2008


David Urquhart wrote:

>Hi,
> 
>Any idea why I get this error message:
> 
>snprintf.c:536: warning: conflicting types for built-in function 'pow10'
>snprintf.c:549: warning: conflicting types for built-in function 'round'
> 
>Regards,
>  
>
I guess its this code conflicting with the built in functions


> static LDOUBLE pow10 (int exponent)
> {
>   LDOUBLE result = 1;
>
>   while (exponent)
>   {
>     result *= 10;
>     exponent--;
>   }
>
>   return result;
> }
>
> static long round (LDOUBLE value)
> {
>   long intpart;
>
>   intpart = (long)value;
>   value = value - intpart;
>   if (value >= 0.5)
>     intpart++;
>
>   return intpart;
> }


I doubt it will cause a problem though.

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org




More information about the unixODBC-support mailing list