Make ScummVM compile with GCC 3.3.1
|Reported by:||SF/johneck||Owned by:||fingolfin|
The latest CVS versions of ScummVM refuses to compile, it dies in all asserts() where pointers are used. Example: byte* tmp = some_function_method_or_other(); assert(tmp);
Will fail with "*byte is not of long int" (or similar). The way to fix this is to: byte* tmp = some_function_method_or_other(); assert(tmp != NULL);
And atleast it compiles with GCC 3.3.1 now. The patch fixes all these, atleast when trying to compile for the SDL backend.
Ticket imported from: #794066. Ticket imported from: patches/379.