mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Restrict NS_FORMAT_ARGUMENT() to Clang.
Causes warning with recent GCC: 'format_arg' attribute directive ignored [-Wattributes]
This commit is contained in:
parent
85711ee5f8
commit
eea7d47a77
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ static inline void gs_consumed(id NS_CONSUMED GS_UNUSED_ARG o) { return; }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef NS_FORMAT_ARGUMENT
|
#ifndef NS_FORMAT_ARGUMENT
|
||||||
#if defined(__clang__) || GS_GCC_MINREQ(4,2)
|
#if defined(__clang__)
|
||||||
# define NS_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
|
# define NS_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
|
||||||
#else
|
#else
|
||||||
# define NS_FORMAT_ARGUMENT(A)
|
# define NS_FORMAT_ARGUMENT(A)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue