Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0269373

Browse files
committed
Suppress gcc warnings.
1 parent d8e95e4 commit 0269373

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/tester.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
#define TINYOBJLOADER_IMPLEMENTATION
22
#include "../tiny_obj_loader.h"
33

4+
#ifdef __GNUC__
5+
#pragma GCC diagnostic ignored "-Wmissing-declarations"
6+
#pragma GCC diagnostic ignored "-Wcast-qual"
7+
#pragma GCC diagnostic ignored "-Wsign-conversion"
8+
#pragma GCC diagnostic ignored "-Wformat"
9+
#pragma GCC diagnostic ignored "-Wswitch-default"
10+
#endif
11+
412
#ifdef __clang__
513
#pragma clang diagnostic push
614
#pragma clang diagnostic ignored "-Weverything"
715
#endif
816

17+
918
#include "acutest.h"
1019

1120
#ifdef __clang__

0 commit comments

Comments
 (0)