From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12616 invoked by alias); 18 Oct 2002 06:16:33 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 12605 invoked from network); 18 Oct 2002 06:16:30 -0000 Received: from unknown (HELO psi12.psi.ch) (129.129.190.112) by sources.redhat.com with SMTP; 18 Oct 2002 06:16:30 -0000 Received: from 129.129.190.113 by psi12.psi.ch (InterScan E-Mail VirusWall NT); Fri, 18 Oct 2002 08:15:24 +0200 Received: from psi.ch (pc446.psi.ch [129.129.233.85]) by psi13.psi.ch with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 4FGCL1LP; Fri, 18 Oct 2002 08:15:22 +0200 Date: Thu, 17 Oct 2002 23:16:00 -0000 From: Ivo Alxneit Subject: Re: strange warning in gsl_matrix_float_set To: bjg@network-theory.co.uk cc: GSL-discuss In-Reply-To: <15788.36394.194928.3456@debian> MIME-Version: 1.0 Content-Type: MULTIPART/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; BOUNDARY="8323328-1804289383-1034921723=:28485" X-SW-Source: 2002-q4/txt/msg00042.txt.bz2 Message-ID: <20021017231600.dmT_M5euROJnjvG_Cz8_6dVLBQJ9d9aSSFQ-Ocrc_Cg@z> --8323328-1804289383-1034921723=:28485 Content-Type: TEXT/plain; charset=us-ascii Content-length: 1475 On 15 Oct, Brian Gough wrote: > Ivo Alxneit writes: > > > gcc -O2 -march=i386 -mcpu=i686 -pipe -pedantic -Wall -W -Wmissing-prototypes > > -Wstrict-prototypes -Wtraditional -Wconversion -Wshadow -Wpointer-arith > > -Wcast-qual -Wcast-align -Wwrite-strings -fshort-enums -fno-common -Wnested-externs > > -Dinline= -g -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L > > -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO > > -c -o read_as_int.o read_as_int.c > > read_as_int.c: In function `read_as_int': > > read_as_int.c:14: warning: passing arg 4 of `gsl_matrix_float_set' as `float' rather > > than `double' due to prototype > > See the section on -Wconversion in the GCC Manual for a description of > the warning. 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 void gsl_matrix_float_set(gsl_matrix_float * m, const size_t i, const size_t j, const float x); i.e. const float for the fourth argument. gcc sees a double in the prototype. am i really supposed to use a cast to get rid of the warning? -- Dr. Ivo Alxneit Laboratory for Solar Technology phone: +41 56 310 4092 CH-5232 Villigen fax: +41 56 310 2624 Paul Scherrer Institute http://solar.web.psi.ch Switzerland gnupg key: 0x515E30C7 --8323328-1804289383-1034921723=:28485 Content-Type: APPLICATION/pgp-signature Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQA9r6b0Ad7CE1FeMMcRAg7rAKCnRlGpfBd1YxwsJLQOpw3lCyYMjwCg0Y+u 9mAqXpACwrnFroUqGdVYCFc= =6MBn -----END PGP SIGNATURE----- --8323328-1804289383-1034921723=:28485--