Skip to content

Commit 6f0e190

Browse files
committed
Silence -Wimplicit-fallthrough in sysv_shmem.c.
Commit 2f932f7 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
1 parent 16ee6ea commit 6f0e190

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/port/sysv_shmem.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ PGSharedMemoryCreate(Size size, int port,
672672
(unsigned long) shmid),
673673
errhint("Terminate any old server processes associated with data directory \"%s\".",
674674
DataDir)));
675+
break;
675676
case SHMSTATE_ENOENT:
676677

677678
/*
@@ -703,6 +704,7 @@ PGSharedMemoryCreate(Size size, int port,
703704
dsm_cleanup_using_control_segment(oldhdr->dsm_control);
704705
if (shmctl(shmid, IPC_RMID, NULL) < 0)
705706
NextShmemSegID++;
707+
break;
706708
}
707709

708710
if (oldhdr && shmdt(oldhdr) < 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy