Make sure warn deprecated uses a volatile bool (for multithreading)

This commit is contained in:
Juan Linietsky 2018-08-07 12:25:48 -03:00
parent 254eb46de3
commit e0456f7976

View file

@ -313,7 +313,7 @@ extern bool _err_error_exists;
#define WARN_DEPRECATED \
{ \
static bool warning_shown = false; \
static volatile bool warning_shown = false; \
if (!warning_shown) { \
_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "This method has been deprecated and will be removed in the future", ERR_HANDLER_WARNING); \
_err_error_exists = false; \