diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-02 17:22:11 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-08 09:08:50 +0000 |
commit | 6bff195a51915fd88c1aa1904cf269dbd1a04f50 (patch) | |
tree | 645fc3bb8f6bbe05aeb16385a52a696973da0b73 /support/ToolchainSupport.h | |
parent | 6665f82b38ce904aa588230546d66e65d38f20d6 (diff) | |
download | ComputeLibrary-6bff195a51915fd88c1aa1904cf269dbd1a04f50.tar.gz |
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 <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2041
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'support/ToolchainSupport.h')
-rw-r--r-- | support/ToolchainSupport.h | 22 |
1 files changed, 22 insertions, 0 deletions
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; } |