Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7dbc075

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 1106438 commit 7dbc075

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
@@ -676,6 +676,7 @@ PGSharedMemoryCreate(Size size, int port,
676676
(unsigned long) shmid),
677677
errhint("Terminate any old server processes associated with data directory \"%s\".",
678678
DataDir)));
679+
break;
679680
case SHMSTATE_ENOENT:
680681

681682
/*
@@ -707,6 +708,7 @@ PGSharedMemoryCreate(Size size, int port,
707708
dsm_cleanup_using_control_segment(oldhdr->dsm_control);
708709
if (shmctl(shmid, IPC_RMID, NULL) < 0)
709710
NextShmemSegID++;
711+
break;
710712
}
711713

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

0 commit comments

Comments
 (0)