From afd3c4adeb7a2fa433314773e6496ef6b9ea29ac Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 8 Oct 2023 02:53:49 -0700 Subject: Mark some functions as maybe_unused For non-SSE-capable targets --- core/fpu_ctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/fpu_ctrl.cpp') diff --git a/core/fpu_ctrl.cpp b/core/fpu_ctrl.cpp index 701f517d..435855ad 100644 --- a/core/fpu_ctrl.cpp +++ b/core/fpu_ctrl.cpp @@ -25,6 +25,7 @@ namespace { #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) [[gnu::target("sse")]] #endif +[[maybe_unused]] void disable_denormals(unsigned int *state [[maybe_unused]]) { #if defined(HAVE_SSE_INTRINSICS) @@ -52,6 +53,7 @@ void disable_denormals(unsigned int *state [[maybe_unused]]) #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) [[gnu::target("sse")]] #endif +[[maybe_unused]] void reset_fpu(unsigned int state [[maybe_unused]]) { #if defined(HAVE_SSE_INTRINSICS) || defined(HAVE_SSE) -- cgit v1.2.3