I get this message when I try to compile my code in OSX with PB 1.1?
void value not ignored as it ought to be
It happens on the line in my code with this call
Mix_HookMusicFinished(musicDone());
Any ideas why this might be?
I get this message when I try to compile my code in OSX with PB 1.1?
void value not ignored as it ought to be
It happens on the line in my code with this call
Mix_HookMusicFinished(musicDone());
Any ideas why this might be?
“Mars_999” <mars_999 at mac.com> wrote in message
news:mailman.1011322146.3454.sdl at libsdl.org…
I get this message when I try to compile my code in OSX with PB 1.1?
void value not ignored as it ought to be
It happens on the line in my code with this call
Mix_HookMusicFinished(musicDone());
Let me guess. ‘musicDone’ returns void? So you are calling
’musicDone’, and passing the return value (which is of type void) to
’Mix_HookMusicFinished’?
If that’s the case, do ‘Mix_HookMusicFinished(musicDone)’ instead.
That passes (the address of) the actual function ‘musicDone’ to
’Mix_HookMusicFinished’, which is probably what you really want.–
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor