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

W. Tasin tasin at e-technik.fh-muenchen.de
Mon Jan 31 15:18:51 UTC 2000


Falk Brettschneider wrote:
> 
> > 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!!
> Avoiding "unused parameters" warning is very easy. I would suggest to
> remove all those variable names from the parameter list of the
> appropriate functions in it's cpp-files.
> 
> For instance in blahblah.cpp:
> 
> void blahblah( int iMUnused)
> {
> }
> 
> should be changed to:
> 
> void blahblah( int)
> {
> }
> 

I agree...
but only if a formal parameter list like this is obbligatory... e. g.
signal/slot mechanism... or for some other reasons...
If it is a parameter which still exists only for historical reasons it
should be eleminated anyway...

----

Other warnings are made by implicit casting a (const char *) to a (char
*)...
which you can see e. g. in highlight.cpp and kmimemagic.cpp ... 
I have already begun to change some char-name-lists to
const-char-name-lists...

I suggest also not to do a explicit (char *) or const_cast<char *> cast
- only if there is no other possibility!
 
> --
> 
> 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