aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-04-03 23:23:35 -0700
committerNoah Misch <noah@leadboat.com>2019-04-03 23:23:38 -0700
commit7dbc0759e0207436851ccc7098250a8110efe655 (patch)
tree30fe20223ebdefed5af39a958797ae85e19effd2 /src
parent1106438c37db44cbd627490dec3b662d4cc5b4f8 (diff)
downloadpostgresql-7dbc0759e0207436851ccc7098250a8110efe655.tar.gz
postgresql-7dbc0759e0207436851ccc7098250a8110efe655.zip
Silence -Wimplicit-fallthrough in sysv_shmem.c.
Commit 2f932f71d9f2963bbd201129d7b971c8f5f077fd added code that elicits a warning on buildfarm member flaviventris. Back-patch to 9.4, like that commit. Reported by Andres Freund. Discussion: https://postgr.es/m/20190404020057.galelv7by75ekqrh@alap3.anarazel.de
Diffstat (limited to 'src')
-rw-r--r--src/backend/port/sysv_shmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c
index 07037a7fda7..a4533046ce9 100644
--- a/src/backend/port/sysv_shmem.c
+++ b/src/backend/port/sysv_shmem.c
@@ -676,6 +676,7 @@ PGSharedMemoryCreate(Size size, int port,
(unsigned long) shmid),
errhint("Terminate any old server processes associated with data directory \"%s\".",
DataDir)));
+ break;
case SHMSTATE_ENOENT:
/*
@@ -707,6 +708,7 @@ PGSharedMemoryCreate(Size size, int port,
dsm_cleanup_using_control_segment(oldhdr->dsm_control);
if (shmctl(shmid, IPC_RMID, NULL) < 0)
NextShmemSegID++;
+ break;
}
if (oldhdr && shmdt(oldhdr) < 0)