From f34467dcb3bdeef2be15453653b6a61ade9c46ac Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Tue, 13 Sep 2022 13:48:51 +0300 Subject: [PATCH] Remove missing declaration warning (#6330) When I built Citus on PG15beta4 locally, I get a warning message. ``` utils/background_jobs.c:902:5: warning: declaration does not declare anything [-Wmissing-declarations] __attribute__((fallthrough)); ^ 1 warning generated. ``` This is a hint to the compiler that we are deliberately falling through in a switch-case block. --- src/backend/distributed/utils/background_jobs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/distributed/utils/background_jobs.c b/src/backend/distributed/utils/background_jobs.c index 6b7cb024b..524bcdb2a 100644 --- a/src/backend/distributed/utils/background_jobs.c +++ b/src/backend/distributed/utils/background_jobs.c @@ -899,9 +899,10 @@ ConsumeTaskWorkerOutput(shm_mq_handle *responseq, StringInfo message, bool *hadE { *hadError = true; } - __attribute__((fallthrough)); } + /* FALLTHROUGH */ + case 'N': /* NoticeResponse */ { ErrorData edata = { 0 };