Fix compiler warnings

No functional changes

Change-Id: I938fecc941b14c065639e27a110ab1feb7c85ba9
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
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 @@
     {
         return _data;
     }
-    const bool GetIsUnranked() const
+    bool GetIsUnranked() const
     {
         return _is_unranked;
     }
@@ -216,7 +216,7 @@
     }
     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);