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:
parent
8bba9cde5c
commit
29932d4bdd
3 changed files with 13 additions and 10 deletions
|
@ -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__);\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue