Thanks Brian!  I did some more searching of the web and it looks like
people are saying that -Wconversion may not be most useful with ISO-C
code (e.g. http://gcc.gnu.org/ml/gcc/2000-06/msg00704.html).  I was
following, somewhat blindly, the list of "GCC warning options for
numerical programs" in the GSL manual.

-Dipankar


On Fri, May 20, 2011 at 6:02 PM, Brian Gough <b...@gnu.org> wrote:
> At Thu, 19 May 2011 16:30:23 -0400,
> Dipankar Maitra wrote:
>> I am trying to use gsl_blas_dgemm() to multiply two matrices, with
>> somewhat strict warning options (as a part of a bigger project).  The
>> code, alongwith its compile options is given below.  When trying to
>> compile the code I get the following warnings:
>>
>> joe.c: In function ‘main’:
>> joe.c:49: warning: passing argument 1 of ‘gsl_blas_dgemm’ with
>> different width due to prototype
>> joe.c:49: warning: passing argument 2 of ‘gsl_blas_dgemm’ with
>> different width due to prototype
>>
>>
>> Is there a way I can fix this?
>
> Hi
>
> Although the output says "warning" it is only flagging potential and
> not actual problems - the compiler cannot know which in this case - so
> it can't be fixed by changing the code.  See the documentation for
> -Wconversion for more details.
>
> --
> Brian Gough
>
>



-- 
-------------------------------------------------------
Dipankar Maitra
Department of Astronomy, Univ. of Michigan
500 Church St., Ann Arbor, MI 48109-1042
Ph: +1-734-615-1583
http://www.astro.lsa.umich.edu/~dmaitra/
-------------------------------------------------------

_______________________________________________
Help-gsl mailing list
Help-gsl@gnu.org
https://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to