bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mathl warnings


From: Bruno Haible
Subject: mathl warnings
Date: Tue, 15 Apr 2008 15:03:25 +0200
User-agent: KMail/1.9.1

Hi Paolo,

The mathl module, compiled on Cygwin with -Wall, yields several warnings:

1)
acosl.c:186: warning: implicit declaration of function `asinl'
acosl.c:186: warning: implicit declaration of function `sqrtl'
asinl.c:186: warning: implicit declaration of function `sqrtl'

Calling functions with 'long double' results when they are not declared
most often yields wrong results, so this is probably not harmless.

2)
trigl.c:217: warning: suggest explicit braces to avoid ambiguous `else'

Look at trigl.c lines 215-216. The condition on x can never be true. What
is the purpose of this code?

3)
tanl.c:128: warning: 'flag' might be used uninitialized in this function

The 'flag' is indeed used uninitialized.

4)
logl.c:193: warning: unused variable `u'
logl.c:194: warning: unused variable `m'

These look harmless. But why not remove the two unused variables?

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]