From 40035385c6ecee61de82b18ff5f823a1ef4db871 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Jan 2022 14:33:06 +0000 Subject: Add constexpr to the initialisation of various const static fields. --- src/inspsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 5e0654fab..df2cdd6bf 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -214,7 +214,7 @@ long StreamSocket::ReadToRecvQ(std::string& rq) } /* Don't try to prepare huge blobs of data to send to a blocked socket */ -static const int MYIOV_MAX = IOV_MAX < 128 ? IOV_MAX : 128; +static constexpr int MYIOV_MAX = IOV_MAX < 128 ? IOV_MAX : 128; void StreamSocket::DoWrite() { -- cgit v1.3.1-10-gc9f91