From 267ccc98d3a9e9da0544a5123fcd1040e00360e9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Dec 2014 00:26:48 +0100 Subject: [PATCH] Win32Main: make the service table "constexpr" --- src/win32/Win32Main.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/Win32Main.cxx b/src/win32/Win32Main.cxx index 894879129..30d94bef5 100644 --- a/src/win32/Win32Main.cxx +++ b/src/win32/Win32Main.cxx @@ -40,7 +40,7 @@ static SERVICE_STATUS_HANDLE service_handle; static void WINAPI service_main(DWORD argc, CHAR *argv[]); -static SERVICE_TABLE_ENTRY service_registry[] = { +static constexpr SERVICE_TABLE_ENTRY service_registry[] = { {service_name, service_main}, {nullptr, nullptr} };