mirror of
https://github.com/MariaDB/server.git
synced 2025-04-22 07:05:33 +02:00
unittest/mytap/tap.h
: Use ATTRIBUTE_FORMAT
Use `my_attribute.h` whereëver available for compatibility with non-GCC
This commit is contained in:
parent
ab50aad15d
commit
f3617981ad
1 changed files with 12 additions and 12 deletions
|
@ -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, ...);
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue