Error Message when making unixODBC on Solaris 10

View: New views
2 Messages — Rating Filter:   Alert me  

Error Message when making unixODBC on Solaris 10

by David Urquhart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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,
 
David Urquhart
Analyst Programmer
Genesis Housing Group
Capital House
25 Chapel Street
London
NW1 5DT
 
T: 020 8150 4172
 

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal

The Genesis Housing Group - Email Disclaimer

The information in this email and any attachments is strictly confidential and may be legally privileged.

It is intended solely for the use of the addressee(s) only. Access to this email by anyone else is unauthorised.  If you have received this email in error please notify the sender immediately by return email or telephone.  Please note that if you are not the intended recipient, you must not copy, distribute or otherwise act on any part of this email or it's attachments.

Although we have taken precautions to ensure that this email and attachments are free from any virus, we would advise you that it is your responsibility to ensure that this is true when reading or actioning this email.


_______________________________________________
unixODBC-support mailing list
unixODBC-support@...
http://mail.easysoft.com/mailman/listinfo/unixodbc-support

Re: Error Message when making unixODBC on Solaris 10

by Nick Gorham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
unixODBC-support mailing list
unixODBC-support@...
http://mail.easysoft.com/mailman/listinfo/unixodbc-support