compiling KDevelop1.1-cvs-snapshot is really ugly :-(

W. Tasin tasin at e-technik.fh-muenchen.de
Mon Jan 31 14:03:14 UTC 2000


Falk Brettschneider wrote:
> 
> Hi,
> 

Hi Falk,

> When I compile KDevelop1.1 (cvs version), there are many new compiler
> warnings.
> 
> Compiling every file reports these warnings again and again:
> 
> /usr/include/kde/htmlobj.h:102: warning: unused parameter `bool
> startOfLine'
> /usr/include/kde/htmlobj.h:102: warning: unused parameter `bool
> firstRun'
> /usr/include/kde/htmlobj.h:102: warning: unused parameter `int
> widthLeft'
> /usr/include/kde/htmlobj.h: In method `bool HTMLTextMaster::print(class
> QPainter *, int, int, int, int, int, int, bool)':
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `class
> QPainter * _painter'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `int _x'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `int _y'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `int _width'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `int _height'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `int _tx'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `int _ty'
> /usr/include/kde/htmlobj.h:407: warning: unused parameter `bool
> toPrinter'
> /usr/include/kde/htmlobj.h: In method `void HTMLTextMaster::print(class
> QPainter *, int, int)':
> /usr/include/kde/htmlobj.h:409: warning: unused parameter `int _tx'
> /usr/include/kde/htmlobj.h:409: warning: unused parameter `int _ty'
> /usr/include/kde/htmlobj.h: In method `bool
> HTMLTextMaster::selectText(class KHTMLWidget *, class HTMLChain *, int,
> int, int, int, int, int)':
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `class
> KHTMLWidget * _htmlw'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `class
> HTMLChain * _chain'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `int _x1'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `int _y1'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `int _x2'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `int _y2'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `int _tx'
> /usr/include/kde/htmlobj.h:414: warning: unused parameter `int _ty'
> 
> Furthermore compiling some files reports something like this:
> ....moc.cpp:104: warning: assignment to `char *' from `const char *'
> discards const

yes... I know it... the same happened to me.
The reason is the new automake/autoconf-framework....
It is now "state of the art" (as far as I can see in the new
acinclude.m4)  to see as much
warnings as possible for debugging purpose and IMHO it should already
been.

These warning will be given only if you compile with the --enable-debug
flag, so I think it shouldn´t be a problem for the users.

Unfortunately most of these warnings are created by the kde-include
"htmlobj.h" and 
the (old) "moc". But there are also some new warnings in the kwrite
modules which should be considered at least one time!!


> 
> :-(

If you want your old state back... there is a possibilty to do so:

use:

make CXXFLAGS="-Wall"

(allow me one advice at the end of this mail: once you should remake the
modified
sources with these switches to eleminate - as much as possible -
warnings)

> 
> --
> 
> Ciao,
> --Falk

Ciao

Walter

--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB 04,
FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x7961A645&fingerprint=on>




More information about the KDevelop-devel mailing list