From 8fe48092dc54c8841489ae4afb0126295964c652 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 14 May 2017 20:02:52 +0200 Subject: compat/simple-mat: pass -Werror on llvm --- compat/simple-mat.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compat') 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::value>::type> Mat(const ts... xs) : data{static_cast(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++) -- cgit v1.2.3