bootloader: Properly enable __PRINTFLIKE for the boot stdio.

No new warnings or errors, it appears.
This commit is contained in:
Augustin Cavalier 2024-12-17 19:48:28 -05:00
parent fed0e6149e
commit 87eae1e3c8

View File

@ -36,13 +36,11 @@ extern FILE *stderr;
# define EOF (-1)
#endif
#define __PRINTFLIKE(a, b)
extern int printf(char const *format, ...) __PRINTFLIKE(1,2);
extern int fprintf(FILE *stream, char const *format, ...) __PRINTFLIKE(2,3);
extern int sprintf(char *str, char const *format, ...) __PRINTFLIKE(2,3);
extern int snprintf(char *str, size_t size, char const *format, ...) __PRINTFLIKE(3,4);
extern int asprintf(char **ret, char const *format, ...) __PRINTFLIKE(2,3);
extern int printf(char const *format, ...) _PRINTFLIKE(1,2);
extern int fprintf(FILE *stream, char const *format, ...) _PRINTFLIKE(2,3);
extern int sprintf(char *str, char const *format, ...) _PRINTFLIKE(2,3);
extern int snprintf(char *str, size_t size, char const *format, ...) _PRINTFLIKE(3,4);
extern int asprintf(char **ret, char const *format, ...) _PRINTFLIKE(2,3);
extern int vprintf(char const *format, va_list ap);
extern int vfprintf(FILE *stream, char const *format, va_list ap);
extern int vsprintf(char *str, char const *format, va_list ap);