From b291e7eb46589832876261fc7c7425c7205ee5d0 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 16 Sep 2024 16:22:28 +0200 Subject: [PATCH] qtipccommon_p.h: fix -Wunused-function Make isIpcSupported() non-static so Clang doesn't warn that it's unused. Amends f79b535f6b303a77fd9c990118c9bc1a165a0dc1. Pick-to: 6.7 Task-number: QTBUG-126219 Change-Id: I0c99d2196fcec8d7fcd1480d09fbbe176ce365b2 Reviewed-by: Thiago Macieira (cherry picked from commit c0cd2c843c4c08e840e6629668bbf3aac7975e09) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/ipc/qtipccommon_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/ipc/qtipccommon_p.h b/src/corelib/ipc/qtipccommon_p.h index 72762c5ba73..8836cd64421 100644 --- a/src/corelib/ipc/qtipccommon_p.h +++ b/src/corelib/ipc/qtipccommon_p.h @@ -65,7 +65,7 @@ enum class IpcType { SystemSemaphore }; -static constexpr bool isIpcSupported(IpcType ipcType, QNativeIpcKey::Type type) +constexpr bool isIpcSupported(IpcType ipcType, QNativeIpcKey::Type type) { switch (type) { case QNativeIpcKey::Type::SystemV: