[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] Legacy code problem in libkdegames/kgame
From:       Ian Wadham <iandw.au () gmail ! com>
Date:       2011-12-31 23:50:37
Message-ID: BB47E708-1DEB-4C64-9768-E527A5D3F71F () gmail ! com
[Download RAW message or body]

On 31/12/2011, at 11:37 PM, Albert Astals Cid wrote:
> Ok, now answering with the correct answer :D
> 
> gcc seems to be smart enough not to try to compile the template code if noone 
> uses it, and since there is no code in KDE using KGamePropertyArray::sort(), 
> it does not fail to compile, if you add this patch
> 
> Index: /home/kdeunstable/kdegames/kfourinline/src/kwin4doc.cpp                      \
>  ===================================================================
> --- /home/kdeunstable/kdegames/kfourinline/src/kwin4doc.cpp     (revision 
> 1266286)
> +++ /home/kdeunstable/kdegames/kfourinline/src/kwin4doc.cpp     (working copy)
> @@ -75,6 +75,7 @@
> 
> // Game initialization
> mField.resize(42);
> +  mField.sort();
> 
> // ****************************************
> // NOTE: Do not i18n the strings here. They
> 
> It will fail to compile in gcc too, thus this means that the sort() function 
> is useless because it can not be effectively used at all. 
> 
> I will remove KGamePropertyArray::sort() after sending this email.

That must be the answer, Albert.  I will report this to the Macports list
so that they can patch the kdegames4 @4.7.4 port, force compilation
with GCC or whatever.

Thanks very much, Albert.
Cheers, Ian W.
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic