Skip to content

Commit

Permalink
arch: Remove stray ) in pragma (#1413)
Browse files Browse the repository at this point in the history
This fixes a warning from clang:

arch/dotproductavx.cpp:94:51: warning:
 unexpected token in pragma diagnostic [-Wunknown-pragmas]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil authored and zdenop committed Mar 23, 2018
1 parent a02b0f9 commit e45d958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/dotproductavx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int64_t*>(&result)) =
#if defined(_WIN32) || defined(__i386__)
// This is a very simple workaround that is activated
Expand Down

0 comments on commit e45d958

Please sign in to comment.