public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Ivo Alxneit <ivo.alxneit@psi.ch>
To: bjg@network-theory.co.uk
Cc: GSL-discuss <gsl-discuss@sources.redhat.com>
Subject: Re: strange warning in gsl_matrix_float_set
Date: Thu, 17 Oct 2002 23:16:00 -0000	[thread overview]
Message-ID: <20021017231600.dmT_M5euROJnjvG_Cz8_6dVLBQJ9d9aSSFQ-Ocrc_Cg@z> (raw)
In-Reply-To: <15788.36394.194928.3456@debian>

[-- Attachment #1: Type: TEXT/plain, Size: 1475 bytes --]

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

[-- Attachment #2: Type: APPLICATION/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-10-18  6:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E181NdC-00048U-00@ultra16.uk2net.com>
2002-10-15 15:06 ` Brian Gough
2002-10-17 23:16   ` Ivo Alxneit [this message]
     [not found]   ` <E182QR9-0005gW-00@ultra16.uk2net.com>
2002-10-20  6:06     ` Brian Gough
2002-10-15  2:04 Ivo Alxneit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021017231600.dmT_M5euROJnjvG_Cz8_6dVLBQJ9d9aSSFQ-Ocrc_Cg@z \
    --to=ivo.alxneit@psi.ch \
    --cc=bjg@network-theory.co.uk \
    --cc=gsl-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).