Skip to content

Commit 0f7b212

Browse files
committed
Try to silence warnings on mac.
1 parent a1bbc71 commit 0f7b212

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

testlib.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
#ifdef __clang__
2+
#pragma clang diagnostic push
3+
#pragma clang diagnostic ignored "-Wfloat-equal"
4+
#pragma clang diagnostic ignored "-Wshadow"
5+
#endif
16
#include <criterion/criterion.h>
27
#include <criterion/new/assert.h>
8+
#ifdef __clang__
9+
#pragma clang diagnostic pop
10+
#endif
311

412
#include "scary.h"
513

0 commit comments

Comments
 (0)