aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhukar Pappireddy <madhukar.pappireddy@arm.com>2022-06-27 18:01:12 +0200
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2022-06-27 18:01:12 +0200
commit24f51f214e538b92490d635010381865e70360ad (patch)
treebb25ca5eef9cc5cdfcf89870917ead1c528e3af7
parentf95ddea6ced4e5fa2cac260940cc1e0412bf4708 (diff)
parenta4e485d7bf1c428d64e90e9821e4b1a109d10626 (diff)
downloadtrusted-firmware-a-24f51f214e538b92490d635010381865e70360ad.tar.gz
Merge "feat(auth): enable MBEDTLS_CHECK_RETURN_WARNING" into integration
-rw-r--r--include/drivers/auth/mbedtls/mbedtls_config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/drivers/auth/mbedtls/mbedtls_config.h b/include/drivers/auth/mbedtls/mbedtls_config.h
index 92188a2e1f..01e261a96f 100644
--- a/include/drivers/auth/mbedtls/mbedtls_config.h
+++ b/include/drivers/auth/mbedtls/mbedtls_config.h
@@ -140,4 +140,13 @@
#endif
#endif
+/*
+ * Warn if errors from certain functions are ignored.
+ *
+ * The warnings are always enabled (where supported) for critical functions
+ * where ignoring the return value is almost always a bug. This macro extends
+ * the warnings to more functions.
+ */
+#define MBEDTLS_CHECK_RETURN_WARNING
+
#endif /* MBEDTLS_CONFIG_H */