unittest/mytap/tap.h: Use ATTRIBUTE_FORMAT

Use `my_attribute.h` whereëver available for compatibility with non-GCC
This commit is contained in:
ParadoxV5 2025-01-17 12:50:02 -07:00 committed by Sergei Golubchik
parent ab50aad15d
commit f3617981ad

View file

@ -125,8 +125,8 @@ void plan(int count);
use ok1() in this case.
*/
void ok(int pass, char const *fmt, ...)
__attribute__((format(printf,2,3)));
ATTRIBUTE_FORMAT(printf, 2, 3)
void ok(int pass, char const *fmt, ...);
/**
@ -168,8 +168,8 @@ void ok1(int const pass);
@param reason A reason for skipping the tests
*/
void skip(int how_many, char const *const reason, ...)
__attribute__((format(printf,2,3)));
ATTRIBUTE_FORMAT(printf, 2, 3)
void skip(int how_many, char const *const reason, ...);
/**
@ -217,8 +217,8 @@ void skip(int how_many, char const *const reason, ...)
@param fmt Diagnostics message in printf() format.
*/
void diag(char const *fmt, ...)
__attribute__((format(printf,1,2)));
ATTRIBUTE_FORMAT(printf, 1, 2)
void diag(char const *fmt, ...);
/**
@ -239,8 +239,8 @@ void diag(char const *fmt, ...)
@param fmt Bail out message in printf() format.
*/
void BAIL_OUT(char const *fmt, ...)
__attribute__((noreturn, format(printf,1,2)));
ATTRIBUTE_NORETURN ATTRIBUTE_FORMAT(printf, 1, 2)
void BAIL_OUT(char const *fmt, ...);
/**
@ -270,8 +270,8 @@ int exit_status(void);
around it.
*/
void skip_all(char const *reason, ...)
__attribute__((noreturn, format(printf, 1, 2)));
ATTRIBUTE_NORETURN ATTRIBUTE_FORMAT(printf, 1, 2)
void skip_all(char const *reason, ...);
/**
@ -295,8 +295,8 @@ void skip_all(char const *reason, ...)
@param message Message that will be printed before the todo tests.
*/
void todo_start(char const *message, ...)
__attribute__((format(printf, 1, 2)));
ATTRIBUTE_FORMAT(printf, 1, 2)
void todo_start(char const *message, ...);
/**