The most effective way to disregard a return value is to explicitly cast it to void
void
static_cast<void>(foo()); // Explicitly ignoring the return value