diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-10 14:33:47 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-16 12:04:25 +0000 |
commit | 7c60c990fbed62aab1369c0e4462c4081dc3cfeb (patch) | |
tree | 94329c7a6214b1385b15bc5225c198fd77cec5c9 /utils/Utils.h | |
parent | a07ce151674e28a3e755f1c48785b599f1d34827 (diff) | |
download | ComputeLibrary-7c60c990fbed62aab1369c0e4462c4081dc3cfeb.tar.gz |
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 <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2069
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'utils/Utils.h')
-rw-r--r-- | utils/Utils.h | 12 |
1 files changed, 6 insertions, 6 deletions
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()); } } |