[[nodiscard]] doesn't do anything on functions with a void return type and causes superfluous warnings.