1 #ifndef _NOWARN_SNPRINTF_H_
2 #define _NOWARN_SNPRINTF_H_
7 static inline int nowarn_snprintf(char *str, size_t size, const char *format,
12 va_start(args, format);
14 #pragma GCC diagnostic push "-Wformat-truncation"
15 #pragma GCC diagnostic ignored "-Wformat-truncation"
17 return vsnprintf(str, size, format, args);
19 #pragma GCC diagnostic pop "-Wformat-truncation"