[PATCH] kjs/wtf/ traits specialization for Studio 12

David Faure faure at kde.org
Fri Aug 17 09:08:25 BST 2007


On Thursday 16 August 2007, Adriaan de Groot wrote:
> On Thursday 16 August 2007 23:22:32 Adriaan de Groot wrote:
> > [  6%] Building CXX object kjs/CMakeFiles/kjs.dir/date_object.o
> >
> >  >> Assertion:   (../lnk/bind.cc, line 268)
> >     while processing /mnt/KDE4/kdelibs/kjs/collector.h at line 44.
> 
> The wtf/HashTraits.h file triggers an internal compiler error in Sun Studio 12 
> because it's picky about consts, and does not match const char * against a P 
> * in the template. The patch below spells it out for the compiler, and works 
> on both gcc 3.4.6 FreeBSD and Sun Studio 12 OpenSolaris. I haven't spotted a 
> way to do this in a more general fashion, as replacing char with P gives the 
> same error. Can someone comment on whether this could be applied?

That would be khtml-devel@ I suppose; this code comes from WebKit's JavascriptCore.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list