Fix gcc warnings when -Wredundant-decls set

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/include/mbedtls/constant_time.h b/include/mbedtls/constant_time.h
index 91a9e7f..2d33adc 100644
--- a/include/mbedtls/constant_time.h
+++ b/include/mbedtls/constant_time.h
@@ -23,6 +23,10 @@
 
 #include <stddef.h>
 
+#ifdef __GNUC__
+    #pragma GCC diagnostic push
+    #pragma GCC diagnostic ignored "-Wredundant-decls"
+#endif
 
 /** Constant-time buffer comparison without branches.
  *
@@ -43,4 +47,8 @@
                       const void *b,
                       size_t n);
 
+#ifdef __GNUC__
+    #pragma GCC diagnostic pop
+#endif
+
 #endif /* MBEDTLS_CONSTANT_TIME_H */