COMPMID-2486: Remove/add disabled compiler warnings

Removed the following flags:
-Wno-vla
-Wno-strict-overflow

Added:
-Wformat-security

Change-Id: I49eb3d724e14db796e543164295674617c37cb65
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2109
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
diff --git a/tests/validation/Validation.cpp b/tests/validation/Validation.cpp
index 0bc1d96..89bbb2e 100644
--- a/tests/validation/Validation.cpp
+++ b/tests/validation/Validation.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, 2018 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
  *
  * SPDX-License-Identifier: MIT
  *
@@ -183,7 +183,8 @@
     const size_t channel_size   = element_size_from_data_type(tensor.data_type());
 
     // Iterate over all elements, e.g. U8, S16, RGB888, ...
-    for(int element_idx = 0; element_idx < tensor.num_elements(); ++element_idx)
+    const uint32_t tensor_num_elements = tensor.num_elements();
+    for(uint32_t element_idx = 0; element_idx < tensor_num_elements; ++element_idx)
     {
         const Coordinates id = index2coord(tensor.shape(), element_idx);