This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gsl and gcc -Wconversion


 > Jerome BENOIT [Tue, 11 Jan 2005]:
 > Hello List,
 > 
 > recently I add compilation option as it is explained in the GSL Manual to build one of my stuff:
 > I have noticed that the option -Wconversion (gcc) produces the warning message
 > 
 > warning: passing arg 4 of `gsl_matrix_char_set' with different width due to prototype
 > 
 > when the fourth is an expected (const char).
 > 
 > The attached program does reproduce this warning with different gcc compiler (gcc 2.95, gcc-3.[234])
 > on my Debian (Sarge) Pentium 4M box (i686).
 > 
 > Does I miss something ?

Character constants (in simple quotes, like 'A') are of type int in C.

-- 
   Olivier


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]