aboutsummaryrefslogtreecommitdiff
path: root/src/numpy_utils.cpp
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2022-02-17 17:14:25 -0800
committerEric Kunze <eric.kunze@arm.com>2022-02-17 17:14:25 -0800
commitb13fe8f01ff8945f00c990c1ea940efe20a3b65c (patch)
treeab7c47246e26d454176b2ad77c4ece89a1b825c2 /src/numpy_utils.cpp
parent9b22517ba0cd6f767123583ce56e864f50e9d758 (diff)
downloadserialization_lib-b13fe8f01ff8945f00c990c1ea940efe20a3b65c.tar.gz
Cleanup code warnings
Change-Id: Ia2a68d8fa9de12f85353d4828a93b05367d86353
Diffstat (limited to 'src/numpy_utils.cpp')
-rw-r--r--src/numpy_utils.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/numpy_utils.cpp b/src/numpy_utils.cpp
index 3c85ae1..80c680f 100644
--- a/src/numpy_utils.cpp
+++ b/src/numpy_utils.cpp
@@ -319,7 +319,6 @@ NumpyUtilities::NPError NumpyUtilities::writeToNpyFileCommon(const char* filenam
uint32_t totalElems = 1;
assert(filename);
- assert(shape.size() >= 0);
assert(databuf);
outfile = fopen(filename, "wb");
@@ -377,7 +376,6 @@ NumpyUtilities::NPError
int headerPos = 0;
assert(outfile);
- assert(shape.size() >= 0);
// Space-fill the header and end with a newline to start per numpy spec
memset(header, 0x20, NUMPY_HEADER_SZ);