Shut up needless compiler warnings

Suppressing warnings about unused results.
Merely casting the results to void isn't good enough to keep fooling
newest compiler versions, so instead using an empty if statement.