[vdr] Can't compile games-0.6.1 with gcc 4.01
Udo Richter
udo_richter at gmx.de
Wed Jul 20 16:47:07 CEST 2005
Guy Roussin wrote:
> .plugin.cpp: In member function 'virtual eOSState GameStart::ProcessKey(eKeys)':plugin.cpp:111: error: invalid lvalue in assignment
> make[2]: *** [plugin.o] Erreur 1
>
> 111: if (r) (int)k &= 0x7fff;
GCC 4 is very strict on enforcing ISO C++ rules. In this case, its no
longer allowed to assign to a type casted variable. Try this variant:
if (r) k = (eKeys)((int)k & 0x7fff);
This is un-tested, dont blame me if it doesnt work.
Cheers,
Udo
More information about the vdr
mailing list