Skip to content

Commit 4154783

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 624edab commit 4154783

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

680681
/*
@@ -706,6 +707,7 @@ PGSharedMemoryCreate(Size size, int port,
706707
dsm_cleanup_using_control_segment(oldhdr->dsm_control);
707708
if (shmctl(shmid, IPC_RMID, NULL) < 0)
708709
NextShmemSegID++;
710+
break;
709711
}
710712

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

0 commit comments

Comments
 (0)