diff options
author | Leif Walsh <leif@tokutek.com> | 2012-09-18 12:13:25 +0000 |
---|---|---|
committer | Yoni Fogel <yoni@tokutek.com> | 2013-04-17 00:01:06 -0400 |
commit | 17e0b2285407ca6a9ced4c3d5f8bc11e97d9c4a6 (patch) | |
tree | 4f391ba4e160ebaff64280dee4cd1515aed2bf7a /ft | |
parent | 1a8d2588cac605e939098925fdfae70b1bbb0b2f (diff) | |
download | mariadb-git-17e0b2285407ca6a9ced4c3d5f8bc11e97d9c4a6.tar.gz |
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
Diffstat (limited to 'ft')
-rw-r--r-- | ft/checkpoint.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ft/checkpoint.cc b/ft/checkpoint.cc index 56f2775ada4..c90456ef1bb 100644 --- a/ft/checkpoint.cc +++ b/ft/checkpoint.cc @@ -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; } |