summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-07 12:25:48 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-08-07 12:25:48 -0300
commite0456f7976832b9f17958e1e8e7c18379b19e382 (patch)
tree63f8c6ee00b9faaec691c625ed21da16a47b2d75 /core
parent254eb46de3c59d9f9864698747d4ec4bea8eaa2c (diff)
Make sure warn deprecated uses a volatile bool (for multithreading)
Diffstat (limited to 'core')
-rw-r--r--core/error_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/error_macros.h b/core/error_macros.h
index 3587e01d54..bee738ceea 100644
--- a/core/error_macros.h
+++ b/core/error_macros.h
@@ -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; \