This is the mail archive of the gsl-discuss@sourceware.cygnus.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]

Re: gsl-0.41 and SparcWorks C


The loop (in gsl_errno.h) could be rewritten as

   while (1) { ... ; return ... }

instead. If you would like to let us know whether the compiler prefers
that, it can be changed. I always like to get rid of compiler
warnings.

regards
Brian Gough

Bernd Petrovitsch writes:
 > At least the SparcWorksCompiler likes it.
 > Another minor issue is : The compiler gives a warning about 
 > "end-of-loop code not reached" on every GSL_ERROR statement. Apparently
 > it detects the "return" in the do-while loop and does not check that
 > while(0) does not yield any code (hopefully :-).


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