aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2020-11-13 16:21:53 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2020-11-13 16:21:53 +0100
commit90f6d9d23e49143a868a03fea552117c3fceec5a (patch)
tree7cca53ca1197a4e0f288c044ceab57bb7e70328e /test
parent8324e5e049f43c9eab5cec5fa5da895fe317155f (diff)
Suppress ignored-attributes warning (same as in vectorization_logic). Remove redundant include and using namespace.
Diffstat (limited to 'test')
-rw-r--r--test/blasutil.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/blasutil.cpp b/test/blasutil.cpp
index 01942918b..845a498d6 100644
--- a/test/blasutil.cpp
+++ b/test/blasutil.cpp
@@ -9,9 +9,13 @@
#include "main.h"
-#include <Eigen/Core>
-
-using namespace Eigen;
+// Disable "ignoring attributes on template argument"
+// for packet_traits<Packet*>
+// => The only workaround would be to wrap _m128 and the likes
+// within wrappers.
+#if EIGEN_GNUC_AT_LEAST(6,0)
+ #pragma GCC diagnostic ignored "-Wignored-attributes"
+#endif
#define GET(i,j) (StorageOrder == RowMajor ? (i)*stride + (j) : (i) + (j)*stride)
#define SCATTER(i,j,k) (StorageOrder == RowMajor ? ((i)+(k))*stride + (j) : (i) + ((j)+(k))*stride)