File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ #if defined(__GNUC__) && __GNUC__ >= 8
2
+ #define DISABLE_WCAST_FUNCTION_TYPE _Pragma (" GCC diagnostic push" ) _Pragma(" GCC diagnostic ignored \" -Wcast-function-type\" " )
3
+ #define DISABLE_WCAST_FUNCTION_TYPE_END _Pragma (" GCC diagnostic pop" )
4
+ #else
5
+ #define DISABLE_WCAST_FUNCTION_TYPE
6
+ #define DISABLE_WCAST_FUNCTION_TYPE_END
7
+ #endif
8
+
1
9
#include < stdio.h>
2
10
#include < string.h>
3
11
#include < assert.h>
4
12
5
13
#include < node.h>
6
14
#include < node_buffer.h>
15
+ DISABLE_WCAST_FUNCTION_TYPE
7
16
#include < nan.h>
17
+ DISABLE_WCAST_FUNCTION_TYPE_END
8
18
9
19
#if NODE_MAJOR_VERSION >= 17
10
20
# include < openssl/configuration.h>
@@ -2145,4 +2155,6 @@ NAN_MODULE_INIT(init) {
2145
2155
GenericDecipher::Init (target);
2146
2156
}
2147
2157
2158
+ DISABLE_WCAST_FUNCTION_TYPE
2148
2159
NODE_MODULE (sshcrypto, init)
2160
+ DISABLE_WCAST_FUNCTION_TYPE_END
You can’t perform that action at this time.
0 commit comments