From 49bfa53a6c7f845287a64fdb3c5b920f2910e986 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 22 Aug 2019 23:39:11 +0200 Subject: [PATCH] Constexprs may be unused --- sources/SIMDSSE.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/SIMDSSE.cpp b/sources/SIMDSSE.cpp index aed75759..0180eecb 100644 --- a/sources/SIMDSSE.cpp +++ b/sources/SIMDSSE.cpp @@ -3,11 +3,11 @@ #include "x86intrin.h" #include "mathfuns/sse_mathfun.h" -constexpr uintptr_t TypeAlignment { 4 }; -constexpr uintptr_t TypeAlignmentMask { TypeAlignment - 1 }; using Type = float; -constexpr uintptr_t ByteAlignment { TypeAlignment * sizeof(Type) }; -constexpr uintptr_t ByteAlignmentMask { ByteAlignment - 1 }; +[[maybe_unused]] constexpr uintptr_t TypeAlignment { 4 }; +[[maybe_unused]] constexpr uintptr_t TypeAlignmentMask { TypeAlignment - 1 } ; +[[maybe_unused]] constexpr uintptr_t ByteAlignment { TypeAlignment * sizeof(Type) }; +[[maybe_unused]] constexpr uintptr_t ByteAlignmentMask { ByteAlignment - 1 }; struct AlignmentSentinels { float* nextAligned; float* lastAligned; };