Made the invalid asprintf test conditional
This commit is contained in:
parent
cbb8f4b9c6
commit
c799927e15
1 changed files with 2 additions and 2 deletions
|
@ -55,11 +55,11 @@ Theory((struct format_test *fmt), asprintf, valid) {
|
|||
free(actual);
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__unix__) && defined(__GNUC__)
|
||||
# pragma GCC diagnostic ignored "-Wformat"
|
||||
#endif
|
||||
|
||||
Test(asprintf, invalid) {
|
||||
char *actual;
|
||||
cr_expect_eq(cr_asprintf(&actual, "%"), -1);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue