From 2b9746b86812ae2b8be8655f18ddac1dc268515b Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 21 Mar 2014 19:44:16 +0100 Subject: [PATCH] Warning fix when T is a short int --- src/vector.inl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vector.inl b/src/vector.inl index 96f222a..e6370ef 100644 --- a/src/vector.inl +++ b/src/vector.inl @@ -37,6 +37,8 @@ namespace cloonel { } } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" ///------------------------------------------------------------------------- ///------------------------------------------------------------------------- template @@ -71,7 +73,10 @@ namespace cloonel { } return *this; } +#pragma GCC diagnostic pop +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" ///------------------------------------------------------------------------- ///------------------------------------------------------------------------- template @@ -106,6 +111,7 @@ namespace cloonel { } return *this; } +#pragma GCC diagnostic pop ///------------------------------------------------------------------------- ///-------------------------------------------------------------------------