Introduce MBEDTLS_MAYBE_UNUSED
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/common.h b/library/common.h
index 3c472c6..1fc04a3 100644
--- a/library/common.h
+++ b/library/common.h
@@ -334,4 +334,11 @@
#define MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
#endif
+/* Suppress compiler warnings for unused functions and variables. */
+#if defined(__GNUC__)
+#define MBEDTLS_MAYBE_UNUSED __attribute__((unused))
+#else
+#define MBEDTLS_MAYBE_UNUSED
+#endif
+
#endif /* MBEDTLS_LIBRARY_COMMON_H */