mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Use SYSPROF_PRINTF rather than G_GNUC_PRINTF
It does the same thing for modern compilers. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -80,3 +80,9 @@
|
||||
#define SYSPROF_LIKELY(expr) (expr)
|
||||
#define SYSPROF_UNLIKELY(expr) (expr)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define SYSPROF_PRINTF(format_idx, arg_idx) __attribute__((format(printf, format_idx, arg_idx)))
|
||||
#else
|
||||
#define SYSPROF_PRINTF(format_idx, arg_idx)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user