Unknown Syntax?

While looking at some of the code for RakNet, I've seen code like this:

virtual void PreDestruction(RakNet::Connection_RM3 *sourceConnection){(void) sourceConnection;}

all over the place, but I've never seen this before. Is this some special syntax for deleting an object, or what? (Referring to the definition of the method)
Last edited on
Are you referring to this (void) sourceConnection;? That code does nothing. I think it's just used to suppress warnings about unused parameter.
Really? I've never seen that before, I didn't know you could use it like that. Thanks.
Topic archived. No new replies allowed.