🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.c++.leda
1 messages
1 total messages Started by Bernd Fritzke Fri, 04 Aug 1995 16:07
can LEDA be made -Wall proof?
#22
Author: Bernd Fritzke
Date: Fri, 04 Aug 1995 16:07
37 lines
2660 bytes
Hi everyone,

I have started using g++ with the -Wall option which gives me lots of useful
warnings (e.g., about missing cases in switch statements if the variable at
hand is an enum type, or about unused variables). Doing this, however, I get
*many* warnings regarding the LEDA header files (see bottom of mail). This
makes it pretty hard to find the interesting warnings about my own code. I
would appreciate very much a re-write of the header files such that g++ does
not complain anymore if the -Wall option is used. I was able, with minor
changes to reduce the warnings quite a bit, but probably the LEDA authors are
more qualified to do this. Any comments?

Regards,
Bernd

P.S.: a small excerpt of the warnings:

/opt/LEDA/incl/LEDA/integer.h:93: warning: `new_integer_rep(unsigned int)' was declared `extern' and later `static'
/opt/LEDA/incl/LEDA/integer.h:87: warning: previous declaration of `new_integer_rep(unsigned int)'
/opt/LEDA/incl/LEDA/integer.h: In function `bool operator !=(const class integer &, const class integer &)':
/opt/LEDA/incl/LEDA/integer.h:339: warning: `operator !=(const integer &, const integer &)' was declared `extern' and later `static'
/opt/LEDA/incl/LEDA/integer.h:232: warning: previous declaration of `operator !=(const integer &, const integer &)'
/opt/LEDA/incl/LEDA/integer.h: In function `bool operator <=(const class integer &, const class integer &)':
/opt/LEDA/incl/LEDA/integer.h:340: warning: `operator <=(const integer &, const integer &)' was declared `extern' and later `static'
/opt/LEDA/incl/LEDA/integer.h:236: warning: previous declaration of `operator <=(const integer &, const integer &)'
/opt/LEDA/incl/LEDA/integer.h: In function `bool operator >=(const class integer &, const class integer &)':
/opt/LEDA/incl/LEDA/integer.h:341: warning: `operator >=(const integer &, const integer &)' was declared `extern' and later `static'
/opt/LEDA/incl/LEDA/integer.h:235: warning: previous declaration of `operator >=(const integer &, const integer &)'





-- 
-- Bernd Fritzke * Institut f"ur Neuroinformatik          Tel. (0234) 7007921
   Ruhr-Universit"at Bochum * 44780 Bochum * Germany      FAX. (0234) 7094210
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads