summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-14 20:02:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-14 20:02:52 +0200
commit8fe48092dc54c8841489ae4afb0126295964c652 (patch)
tree4c92fab4e15e53a30b7d8bd56529d733e8ad49da /compat
parentca6c7988b7cf5d11080d72f344087492526f7cdc (diff)
compat/simple-mat: pass -Werror on llvm
Diffstat (limited to 'compat')
-rw-r--r--compat/simple-mat.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp
index a909e40b..11bb191f 100644
--- a/compat/simple-mat.hpp
+++ b/compat/simple-mat.hpp
@@ -206,6 +206,11 @@ public:
inline num operator()(unsigned j, unsigned i) const { return data[j][i]; }
inline num& operator()(unsigned j, unsigned i) { return data[j][i]; }
+#ifdef __GNUG__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wmissing-braces"
+#endif
+
template<typename... ts, int h__ = h_, int w__ = w_,
typename = typename std::enable_if<is_arglist_correct<num, h__, w__, ts...>::value>::type>
Mat(const ts... xs) : data{static_cast<num>(xs)...}
@@ -213,6 +218,10 @@ public:
static_assert(h__ == h_ && w__ == w_, "");
}
+#ifdef __GNUG__
+# pragma GCC diagnostic pop
+#endif
+
Mat()
{
for (int j = 0; j < h_; j++)