From 994640858b52cc04c7970ea7ca766bc18cfa1010 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko Date: Mon, 5 Jul 2021 10:09:22 +0300 Subject: [PATCH] Fix fall-through warning in debug_point_enable() --- src/debug_point.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debug_point.c b/src/debug_point.c index ea9570a11..6adb20499 100644 --- a/src/debug_point.c +++ b/src/debug_point.c @@ -17,6 +17,7 @@ #include #include "export.h" +#include "annotations.h" TS_FUNCTION_INFO_V1(ts_debug_point_enable); TS_FUNCTION_INFO_V1(ts_debug_point_release); @@ -84,7 +85,7 @@ debug_point_enable(const DebugPoint *point) case LOCKACQUIRE_ALREADY_HELD: case LOCKACQUIRE_ALREADY_CLEAR: LockRelease(&point->tag, ExclusiveLock, true); - /* fallthrough */ + TS_FALLTHROUGH; case LOCKACQUIRE_NOT_AVAIL: ereport(ERROR, (errmsg("debug point \"%s\" already enabled", point->name))); break;