Turn back on fmtcheck's attribute checks, guarded for non-GCC compilers.
Submitted by: bde
This commit is contained in:
parent
e25076d79c
commit
1bd6873376
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87369
@ -309,8 +309,14 @@ __END_DECLS
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int asprintf __P((char **, const char *, ...)) __printflike(2, 3);
|
int asprintf __P((char **, const char *, ...)) __printflike(2, 3);
|
||||||
char *ctermid_r __P((char *));
|
char *ctermid_r __P((char *));
|
||||||
__const char *fmtcheck __P((const char *, const char *));
|
|
||||||
char *fgetln __P((FILE *, size_t *));
|
char *fgetln __P((FILE *, size_t *));
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3
|
||||||
|
#define __ATTR_FORMAT_ARG __attribute__((__format_arg__(2)))
|
||||||
|
#else
|
||||||
|
#define __ATTR_FORMAT_ARG
|
||||||
|
#endif
|
||||||
|
__const char *fmtcheck __P((const char *, const char *)) __ATTR_FORMAT_ARG;
|
||||||
int fpurge __P((FILE *));
|
int fpurge __P((FILE *));
|
||||||
int fseeko __P((FILE *, _BSD_OFF_T_, int));
|
int fseeko __P((FILE *, _BSD_OFF_T_, int));
|
||||||
_BSD_OFF_T_ ftello __P((FILE *));
|
_BSD_OFF_T_ ftello __P((FILE *));
|
||||||
|
Loading…
Reference in New Issue
Block a user