79426378

Date: 2025-02-10 07:49:16
Score: 1
Natty:
Report link

The most effective way to disregard a return value is to explicitly cast it to void

static_cast<void>(foo()); // Explicitly ignoring the return value
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sadeesh Kalhara