mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Dial back -Wimplicit-fallthrough to level 3
The additional pain from level 4 is excessive for the gain. Also revert all the source annotation changes to their original wordings, to avoid back-patching pain. Discussion: https://postgr.es/m/31166.1589378554@sss.pgh.pa.us
This commit is contained in:
@@ -5902,19 +5902,19 @@ bgworker_should_start_now(BgWorkerStartTime start_time)
|
||||
case PM_RUN:
|
||||
if (start_time == BgWorkerStart_RecoveryFinished)
|
||||
return true;
|
||||
/* FALLTHROUGH */
|
||||
/* fall through */
|
||||
|
||||
case PM_HOT_STANDBY:
|
||||
if (start_time == BgWorkerStart_ConsistentState)
|
||||
return true;
|
||||
/* FALLTHROUGH */
|
||||
/* fall through */
|
||||
|
||||
case PM_RECOVERY:
|
||||
case PM_STARTUP:
|
||||
case PM_INIT:
|
||||
if (start_time == BgWorkerStart_PostmasterStart)
|
||||
return true;
|
||||
/* FALLTHROUGH */
|
||||
/* fall through */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user