Skip to content

Commit 776a4c2

Browse files
committed
Wrapper, JS: fix clang builds
1 parent e75ae45 commit 776a4c2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

binding.gyp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"-fexceptions",
1515
"-frtti",
1616
"-Wno-cast-function-type", # since nan.h -> node.h has some warnings regarding that
17-
"-Wno-template-id-cdtor", # since nan.h -> node.h has some warnings regarding that
1817
"<!@(pkg-config oopetris-recordings --cflags-only-other)",
1918
"-static", # statically link this, as we do on windows ( it's the default as per node-gyp )
2019
],

src/cpp/wrapper.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@
44
#endif
55
#endif
66

7+
#if defined(__GNUC__) & !defined(__clang__)
8+
#pragma GCC diagnostic push
9+
#pragma GCC diagnostic ignored "-Wtemplate-id-cdtor"
10+
#endif
11+
712
#include <nan.h>
813

14+
#if defined(__GNUC__) & !defined(__clang__)
15+
#pragma GCC diagnostic pop
16+
#endif
17+
18+
919
#include <core/core.hpp>
1020
#include <recordings/recordings.hpp>
1121

0 commit comments

Comments
 (0)