Article View: comp.lang.c++.leda
Article #22can LEDA be made -Wall proof?
From: Bernd Fritzke
Date: Fri, 04 Aug 1995 16:07
Date: Fri, 04 Aug 1995 16:07
37 lines
2660 bytes
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
Technical Details
Message-ID:
<FRITZKE.95Aug4180756@urda.neuroinformatik.ruhr-uni-bochum.de>Path:
arc1-ca.pugleaf.net!news.ruhr-uni-bochum.de!fritzkeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.ruhr-uni-bochum.de!fritzke From: fritzke@neuroinformatik.ruhr-uni-bochum.de (Bernd Fritzke) Newsgroups: comp.lang.c++.leda Subject: can LEDA be made -Wall proof? Date: 04 Aug 1995 16:07:56 GMT Organization: Institut fuer Neuroinformatik, Ruhr-Universitaet Bochum, Germany Distribution: world Message-ID: <FRITZKE.95Aug4180756@urda.neuroinformatik.ruhr-uni-bochum.de> NNTP-Posting-Host: urda.neuroinformatik.ruhr-uni-bochum.de