Add disabling of gcc 'clobbered' warning

With gcc, use of setjmp() was triggering warnings about use of auto variables
being clobbered.
This commit is contained in:
Simon Butcher 2018-12-07 16:53:57 +00:00 committed by Manuel Pégourié-Gonnard
parent 63cb97e562
commit 747f5fe3e2

View file

@ -26,8 +26,13 @@
#if defined(MBEDTLS_CHECK_PARAMS)
#include <setjmp.h>
#define MBEDTLS_PARAM_FAILED(x) mbedtls_param_failed( #x )
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic ignored "-Wno-uninitialized"
#endif
#endif /* MBEDTLS_CHECK_PARAMS */
#ifdef _MSC_VER
#include <basetsd.h>
typedef UINT8 uint8_t;