From 6bff195a51915fd88c1aa1904cf269dbd1a04f50 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 2 Oct 2019 17:22:11 +0100 Subject: COMPMID-2486: Remove disabled compiler warnings Removed -Wno-unused-parameter and -Wno-deprecated-declarations compilation flags. Plus, 3RDPARTY_UPDATE. Change-Id: I43098c7af527d5651aad3c597b508a56f8813dda Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/2041 Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- support/ToolchainSupport.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'support/ToolchainSupport.h') diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h index 03bbff9aba..b4ed2fa9a4 100644 --- a/support/ToolchainSupport.h +++ b/support/ToolchainSupport.h @@ -71,6 +71,17 @@ inline int stoi(const std::string &str, std::size_t *pos = 0, NumericBase base = } ss << str; ss >> x; + + if(pos) + { + std::string s; + std::stringstream ss_p; + + ss_p << x; + ss_p >> s; + *pos = s.length(); + } + return x; } @@ -96,6 +107,17 @@ inline unsigned long stoul(const std::string &str, std::size_t *pos = 0, Numeric } stream << str; stream >> value; + + if(pos) + { + std::string s; + std::stringstream ss_p; + + ss_p << value; + ss_p >> s; + *pos = s.length(); + } + return value; } -- cgit v1.2.1