We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3890c9 commit 9f56219Copy full SHA for 9f56219
postgresql/src/storages/postgres/detail/cancel.cpp
@@ -22,6 +22,11 @@ typedef struct {
22
23
#if USERVER_LIBPQ_VERSION >= 180000
24
25
+#ifdef __clang__
26
+#pragma clang diagnostic push
27
+#pragma clang diagnostic ignored "-Wc99-extensions"
28
+#endif
29
+
30
struct pg_cancel {
31
SockAddr raddr; /* Remote address */
32
int be_pid; /* PID of to-be-canceled backend */
@@ -38,6 +43,10 @@ struct pg_cancel {
38
43
char cancel_req[/*FLEXIBLE_ARRAY_MEMBER*/]; /* CancelRequestPacket */
39
44
};
40
45
46
47
+#pragma clang diagnostic pop
48
49
41
50
#else
42
51
52
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
0 commit comments