diff options
author | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-16 21:47:50 +0100 |
---|---|---|
committer | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-16 21:47:50 +0100 |
commit | 29932d4bddad6a0ad4269606e38701d544784951 (patch) | |
tree | c218b87eff788ad3e848425ad21e20594865c395 /src/debug.h | |
parent | 8bba9cde5c2536812679855e145954929a054d48 (diff) | |
download | minetest-29932d4bddad6a0ad4269606e38701d544784951.tar.gz minetest-29932d4bddad6a0ad4269606e38701d544784951.tar.bz2 minetest-29932d4bddad6a0ad4269606e38701d544784951.zip |
Get rid of all the string format warnings caused by the DSTACK macro
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h index 5cc1e6c4d..234b7c74a 100644 --- a/src/debug.h +++ b/src/debug.h @@ -169,7 +169,10 @@ private: bool m_overflowed; }; -#define DSTACK(...)\ +#define DSTACK(msg)\ + DebugStacker __debug_stacker(msg); + +#define DSTACKF(...)\ char __buf[DEBUG_STACK_TEXT_SIZE];\ snprintf(__buf,\ DEBUG_STACK_TEXT_SIZE, __VA_ARGS__);\ |