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/threadsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/threadsocket.cpp') diff --git a/src/threadsocket.cpp b/src/threadsocket.cpp index 4e56e8f43..f059b704e 100644 --- a/src/threadsocket.cpp +++ b/src/threadsocket.cpp @@ -96,7 +96,7 @@ class ThreadSignalSocket final void Notify() { - static const char dummy = '*'; + static constexpr char dummy = '*'; write(send_fd, &dummy, 1); } -- cgit v1.3.1-10-gc9f91