aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2024-01-03 00:27:59 +0000
committerEric Kunze <eric.kunze@arm.com>2024-01-03 19:03:17 +0000
commitcc426df2a6762cb09c6a25c911039ae34660570c (patch)
tree5e341fa0ca388b7cd1bc944ff5124a30cb64fea5 /include
parent92358fc122cba98e373ca2ff42b1cfe7618161e8 (diff)
downloadserialization_lib-cc426df2a6762cb09c6a25c911039ae34660570c.tar.gz
Fix compiler warnings
No functional changes Change-Id: I938fecc941b14c065639e27a110ab1feb7c85ba9 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/tosa_serialization_handler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tosa_serialization_handler.h b/include/tosa_serialization_handler.h
index e5448bc..41032fc 100644
--- a/include/tosa_serialization_handler.h
+++ b/include/tosa_serialization_handler.h
@@ -1,5 +1,5 @@
-// Copyright (c) 2020-2023, ARM Limited.
+// Copyright (c) 2020-2024, ARM Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -184,7 +184,7 @@ public:
{
return _data;
}
- const bool GetIsUnranked() const
+ bool GetIsUnranked() const
{
return _is_unranked;
}
@@ -216,7 +216,7 @@ public:
}
void SetDimSize(size_t dim, uint32_t new_size)
{
- if (dim < 0 || dim >= _shape.size())
+ if (dim >= _shape.size())
{
printf("dim is out of bound\n");
assert(0);