From 4e14f874d19756c128e8ed0ec9193146e6c20717 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Sun, 1 Mar 2026 12:42:38 -0800 Subject: [PATCH] Move imath_float_half_exp_table inside #ifdef IMATH_USE_HALF_LOOKUP_TABLE Part of an effort to get the CI building without warnings This variable is only used if IMATH_USE_HALF_LOOKUP_TABLE is set, so the declaration is now inside that conditional block, to avoid an unused variable warning. Signed-off-by: Cary Phillips --- src/ImathTest/half_perf_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ImathTest/half_perf_test.cpp b/src/ImathTest/half_perf_test.cpp index ca75ec38..885388dc 100644 --- a/src/ImathTest/half_perf_test.cpp +++ b/src/ImathTest/half_perf_test.cpp @@ -23,13 +23,13 @@ #include -static const unsigned short imath_float_half_exp_table[1 << 9] = -#include "eLut.h" - using namespace IMATH_NAMESPACE; #ifdef IMATH_USE_HALF_LOOKUP_TABLE +static const unsigned short imath_float_half_exp_table[1 << 9] = +#include "eLut.h" + static inline float table_half_cast (const half& h) {