Make sure warn deprecated uses a volatile bool (for multithreading)
This commit is contained in:
parent
254eb46de3
commit
e0456f7976
1 changed files with 1 additions and 1 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue