1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Get rid of all the string format warnings caused by the DSTACK macro

This commit is contained in:
Ciaran Gultnieks 2011-05-16 21:47:50 +01:00
parent 8bba9cde5c
commit 29932d4bdd
3 changed files with 13 additions and 10 deletions

View file

@ -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__);\