Changes to use attributes for noreturn and printf-like functions

This commit is contained in:
Landon Curt Noll
2022-01-22 02:48:50 -08:00
parent 3f177f2d81
commit 1658343227
5 changed files with 9 additions and 13 deletions

7
decl.h
View File

@@ -94,12 +94,5 @@
#endif
/* Perform printf-style argument type checking for known compilers */
#ifdef __GNUC__
# define PRINTF_FORMAT(fmt_idx, arg_idx) __attribute__ \
((format (printf, fmt_idx, arg_idx)))
#else
# define PRINTF_FORMAT(fmt_idx, arg_idx)
#endif
#endif /* !INCLUDE_DECL_H */