Commit 17e0b228 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5467 fix -Wmaybe-uninitialized warning when compiling with optimizations

since enums can be implicitly cast from ints, switch statement type safety
doesn't really work, but the compiler only catches it if it tries to do a
certain amount of CCP


git-svn-id: file:///svn/toku/tokudb@47892 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1a8d2588
......@@ -220,13 +220,15 @@ static bool checkpoint_caller_is_aggressive(checkpoint_caller_t caller_id) {
case CLIENT_CHECKPOINT:
retval = false;
break;
case TXN_COMMIT_CHECKPOINT:
case STARTUP_CHECKPOINT:
case TXN_COMMIT_CHECKPOINT:
case STARTUP_CHECKPOINT:
case UPGRADE_CHECKPOINT:
case RECOVERY_CHECKPOINT:
case SHUTDOWN_CHECKPOINT:
retval = true;
break;
default:
abort();
}
return retval;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment