From e45d9587b437ee6d9da4e92644b4410eee3654f9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 23 Mar 2018 18:42:46 +0100 Subject: [PATCH] arch: Remove stray ) in pragma (#1413) This fixes a warning from clang: arch/dotproductavx.cpp:94:51: warning: unexpected token in pragma diagnostic [-Wunknown-pragmas] Signed-off-by: Stefan Weil --- arch/dotproductavx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/dotproductavx.cpp b/arch/dotproductavx.cpp index 62e701b2d7..5205e7fb66 100644 --- a/arch/dotproductavx.cpp +++ b/arch/dotproductavx.cpp @@ -91,7 +91,7 @@ double DotProductAVX(const double* u, const double* v, int n) { // fool the intrinsics into thinking we are extracting the bottom int64. auto cast_sum = _mm256_castpd_si256(sum); #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing") +#pragma GCC diagnostic ignored "-Wstrict-aliasing" *(reinterpret_cast(&result)) = #if defined(_WIN32) || defined(__i386__) // This is a very simple workaround that is activated