Commit f2811e45 authored by Evgeniy Isaev's avatar Evgeniy Isaev Committed by Mouse

Fixed `format=` warning on GCC older than 4.4

parent 3ed670b2
...@@ -88,7 +88,13 @@ typedef unsigned int uint32_t; ...@@ -88,7 +88,13 @@ typedef unsigned int uint32_t;
#else #else
#define CC_ATTRIBUTE(attr) #define CC_ATTRIBUTE(attr)
#endif #endif
#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var)) #if defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__>= 4) || __GNUC__ > 4)
#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(gnu_printf, fmt, var))
#elif defined(__GNUC__)
#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var))
#else
#define CC_PRINTFLIKE(fmt, var)
#endif
#define CC_NOTUSED CC_ATTRIBUTE(unused) #define CC_NOTUSED CC_ATTRIBUTE(unused)
#ifndef CC_ATTR_NO_SANITIZE #ifndef CC_ATTR_NO_SANITIZE
#if __GNUC__ < 8 #if __GNUC__ < 8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment