From 7c60c990fbed62aab1369c0e4462c4081dc3cfeb Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 10 Oct 2019 14:33:47 +0100 Subject: COMPMID-2486: Remove disabled compiler warnings Removed the following flags: -Wno-format-nonliteral: This had a side effect on Error.h that resulted in rewriting most of the macros. Since I was at it I removed all the va_args in order to comply with DCL50-CPP. -Wno-deprecated-increment-bool -Wno-vla-extension -Wno-mismatched-tags -Wno-redundant-move Change-Id: I7c593854ecc3b7d595b8edcbd6a86d3c2563c6bd Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/2069 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- utils/Utils.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'utils/Utils.h') diff --git a/utils/Utils.h b/utils/Utils.h index d669730a3e..bc2fef4eb0 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -344,7 +344,7 @@ public: try { _fs.open(npy_filename, std::ios::in | std::ios::binary); - ARM_COMPUTE_EXIT_ON_MSG(!_fs.good(), "Failed to load binary data from %s", npy_filename.c_str()); + ARM_COMPUTE_EXIT_ON_MSG_VAR(!_fs.good(), "Failed to load binary data from %s", npy_filename.c_str()); _fs.exceptions(std::ifstream::failbit | std::ifstream::badbit); _file_layout = file_layout; @@ -352,7 +352,7 @@ public: } catch(const std::ifstream::failure &e) { - ARM_COMPUTE_ERROR("Accessing %s: %s", npy_filename.c_str(), e.what()); + ARM_COMPUTE_ERROR_VAR("Accessing %s: %s", npy_filename.c_str(), e.what()); } } /** Return true if a NPY file is currently open */ @@ -521,7 +521,7 @@ public: } catch(const std::ifstream::failure &e) { - ARM_COMPUTE_ERROR("Loading NPY file: %s", e.what()); + ARM_COMPUTE_ERROR_VAR("Loading NPY file: %s", e.what()); } } @@ -609,7 +609,7 @@ void save_to_ppm(T &tensor, const std::string &ppm_filename) } catch(const std::ofstream::failure &e) { - ARM_COMPUTE_ERROR("Writing %s: (%s)", ppm_filename.c_str(), e.what()); + ARM_COMPUTE_ERROR_VAR("Writing %s: (%s)", ppm_filename.c_str(), e.what()); } } @@ -668,7 +668,7 @@ void save_to_npy(T &tensor, const std::string &npy_filename, bool fortran_order) } catch(const std::ofstream::failure &e) { - ARM_COMPUTE_ERROR("Writing %s: (%s)", npy_filename.c_str(), e.what()); + ARM_COMPUTE_ERROR_VAR("Writing %s: (%s)", npy_filename.c_str(), e.what()); } } @@ -720,7 +720,7 @@ void load_trained_data(T &tensor, const std::string &filename) } catch(const std::ofstream::failure &e) { - ARM_COMPUTE_ERROR("Writing %s: (%s)", filename.c_str(), e.what()); + ARM_COMPUTE_ERROR_VAR("Writing %s: (%s)", filename.c_str(), e.what()); } } -- cgit v1.2.1