This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: strange warning in gsl_matrix_float_set
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Ivo Alxneit <ivo dot alxneit at psi dot ch>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sun, 20 Oct 2002 13:00:35 +0100 (BST)
- Subject: Re: strange warning in gsl_matrix_float_set
- References: <15788.36394.194928.3456@debian><E182QR9-0005gW-00@ultra16.uk2net.com>
Ivo Alxneit writes:
> well according to the mainual -Wconversion deals with warnings due to
> signed/unsigned variables. i get a waring due to float/double even
> though the prototype in gsl_matrix_float.h is
`-Wconversion'
Warn if a prototype causes a type conversion that is different
from what would happen to the same argument in the absence of a
prototype.
In the absence of a prototype float is promoted to double, as in the
old K&R C, hence the warning. The float/double warning always occurs
with -Wconversion, so I only use that option for occassional checks.