From 1a5d0eddbe4941e18154f82a7fcd0489171b1ab0 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Tue, 12 Oct 2021 17:51:28 +0200 Subject: [PATCH] fix: Silence false positive cppcoreguidel-pro-bounds-array-to-pointer-decay --- fairmq/Channel.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fairmq/Channel.h b/fairmq/Channel.h index 446ab376..04100ec1 100644 --- a/fairmq/Channel.h +++ b/fairmq/Channel.h @@ -87,7 +87,11 @@ class Channel struct ChannelConfigurationError : std::runtime_error { using std::runtime_error::runtime_error; }; - Socket& GetSocket() const { assert(fSocket); return *fSocket; } + Socket& GetSocket() const + { + assert(fSocket); // NOLINT(cppcoreguidelines-pro-bounds-array-to-pointer-decay) + return *fSocket; + } bool Bind(const std::string& address) {