From bug-octave-request at bevo dot che dot wisc dot edu Wed Nov 3 06:50:46 1999 Subject: Re: Warnings compiling octave-2.1.19 with latest egcs snapshot From: Joao Cardoso To: "John W. Eaton" CC: "Billinghurst, David (RTD)" , "'bug-octave@bevo.che.wisc.edu'" Date: Wed, 03 Nov 1999 12:50:15 +0000 "John W. Eaton" wrote: > On 3-Nov-1999, Billinghurst, David (RTD) wrote: > > | There were a few more warnings compiling octave-2.1.19 with latest > | (19991025) egcs snapshot ... > > | Also need to #include for liboctave/getopt.c > | liboctave/getopt.c: In function `_getopt_internal': > | /liboctave/getopt.c:455: warning: implicit declaration of function > | `strncmp' > > Hmm. The comments in that code say: > > /* We want to avoid inclusion of string.h with non-GNU libraries > because there are many ways it can cause trouble. > On some systems, it contains special magic macros that don't work > in GCC. */ > > Perhaps it is best to just ignore this warning, which only occurs > because Octave's Makefiles add -Wall to the compiler flags when gcc > and g++ are used. > > How many packages do you know of that compile cleanly with -Wall? yes, but the new gcc-2.95 don't allow for it, see Mumit last post. Joao -- Joao Cardoso | e-mail: jcardoso at inescn dot pt INESC, R. Jose Falcao 110 | tel: + 351 2 2094322 4050 Porto, Portugal | fax: + 351 2 2008487 --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------