[PPL-devel] Doxygen-1.2.17-20020804 does not compile

Roberto Bagnara bagnara at cs.unipr.it
Mon Aug 5 23:44:07 CEST 2002


There is an easy-to-fix problem in Doxygen-1.2.17-20020804:

g++ -c -pipe -Wall -W -fno-exceptions -O2 -I../qtools -I../libpng -o ../objects/docparser.o docparser.cpp
docparser.cpp: In function `void handlePendingStyleCommands(DocNode*,
    QList<DocNode>&)':
docparser.cpp:188: warning: `const char*cmd' might be used uninitialized in
    this function
docparser.cpp: In function `bool defaultHandleToken(DocNode*, int,
    QList<DocNode>&, bool)':
docparser.cpp:221: default argument given for parameter 4 of `bool
    defaultHandleToken(DocNode*, int, QList<DocNode>&, bool = TRUE)'
docparser.cpp:117: after previous specification in `bool
    defaultHandleToken(DocNode*, int, QList<DocNode>&, bool = TRUE)'

The compiler (g++ 3.1.1) is right: according to the standard [8.3.6.4],
"A default argument shall not be redefined by a later declaration
(not even to the same value)."
I hope it helps.
All the best

     Roberto

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it




More information about the PPL-devel mailing list