Skip to content

Prevent spurious "unchecked status code" error

In some case, the line:

Assert( sc.isSuccess(), "message", sc );

triggers the message about "unchecked StatusCode".

The problem is that the compiler may decide to first copy sc (unchecked) and only afterwards call isSuccess().

In ODINFilter and HDRFilter the call to setProperty may only return success or failure, so propagating the StatusCode is redundant and can be removed.

CC: @ibelyaev

Merge request reports