Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions postgresql/src/storages/postgres/detail/cancel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ typedef struct {

#if USERVER_LIBPQ_VERSION >= 180000

#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc99-extensions"
#endif

struct pg_cancel {
SockAddr raddr; /* Remote address */
int be_pid; /* PID of to-be-canceled backend */
Expand All @@ -38,6 +43,10 @@ struct pg_cancel {
char cancel_req[/*FLEXIBLE_ARRAY_MEMBER*/]; /* CancelRequestPacket */
};

#ifdef __clang__
# pragma clang diagnostic pop
#endif

#else

// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
Expand Down
Loading