[mythtv] [PATCH] fifowriter gcc 3.4
Eric Hattemer
eric at hattenator.dyndns.org
Fri Jun 4 19:23:09 EDT 2004
Matt Zimmerman wrote:
>
>What are the errors that you get if you don't change anything?
>
>
gcc 3.4 no longer accepts the syntax
new (x)[y]
I wish I had the errors sitting in front of me, but I don't. So the
typedef allows you to take off the ()'s. The other errors are:
RTjpegN.cpp: In member function `int RTjpeg::b2s(int16_t*, int8_t*,
uint8_t)':
RTjpegN.cpp:136: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:145: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:174: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:186: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:203: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:224: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:234: warning: ISO C++ forbids cast to non-reference type
used as lvalue
RTjpegN.cpp:241: warning: ISO C++ forbids cast to non-reference type
used as lvalue
which are errors if -fpermissive is not turned on.
-Eric Hattemer
More information about the mythtv-dev
mailing list