Sometimes a local variable is used for the sole purpose of checking it in an assert(), like so -
int Result = Func(); assert( Result == 1 );
This is a bad use of assert, IMHO. Assert is not meant as an error reporting tool, it's meant to assert preconditions. If Result is not used elsewhere, it's not a precondition.