Skip to content

Commit b81432d

Browse files
committed
squash!: conditionaly add -Wno-cast-function-type
1 parent ede6c4a commit b81432d

File tree

32 files changed

+158
-33
lines changed

32 files changed

+158
-33
lines changed

test/addons/async-hello-world/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/async-hooks-id/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/async-hooks-promise/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/async-resource/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/at-exit/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/buffer-free-callback/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/callback-scope/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/dlopen-ping-pong/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
'target_name': 'binding',
2020
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
2121
'sources': [ 'binding.cc' ],
22-
'cflags': ['-Wno-cast-function-type'],
22+
'conditions': [
23+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
24+
'cflags': ['-Wno-cast-function-type'],
25+
}],
26+
],
2327
}
2428
]
2529
}

test/addons/errno-exception/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/heap-profiler/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
77
'win_delay_load_hook': 'false',
8-
'cflags': ['-Wno-cast-function-type'],
8+
'conditions': [
9+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
10+
'cflags': ['-Wno-cast-function-type'],
11+
}],
12+
],
913
}
1014
]
1115
}

test/addons/hello-world-esm/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/hello-world-function-export/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/hello-world/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/load-long-path/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/make-callback-domain-warning/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/make-callback-recurse/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/make-callback/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/new-target/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/node-module-version/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/non-node-context/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{
44
'target_name': 'binding',
55
'sources': ['binding.cc'],
6-
'cflags': ['-Wno-cast-function-type'],
6+
'conditions': [
7+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
8+
'cflags': ['-Wno-cast-function-type'],
9+
}],
10+
],
711
},
812
]
913
}

test/addons/not-a-binding/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{
44
'target_name': 'binding',
55
'sources': [ 'not_a_binding.c' ],
6-
'cflags': ['-Wno-cast-function-type'],
6+
'conditions': [
7+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
8+
'cflags': ['-Wno-cast-function-type'],
9+
}],
10+
],
711
}
812
]
913
}

test/addons/null-buffer-neuter/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/openssl-binding/binding.gyp

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
['node_use_openssl=="true"', {
77
'sources': ['binding.cc'],
88
'include_dirs': ['../../../deps/openssl/openssl/include'],
9-
}]
9+
}],
10+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
11+
'cflags': ['-Wno-cast-function-type'],
12+
}],
1013
],
11-
'cflags': ['-Wno-cast-function-type'],
1214
},
1315
]
1416
}

test/addons/openssl-client-cert-engine/binding.gyp

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
'../../../../out/<(PRODUCT_DIR)/<(openssl_product)'
1919
]
2020
},
21-
}]
21+
}],
22+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
23+
'cflags': ['-Wno-cast-function-type'],
24+
}],
2225
]
2326
}
2427
]

test/addons/parse-encoding/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/repl-domain-abort/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/stringbytes-external-exceed-max/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/symlinked-module/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{
44
'target_name': 'binding',
55
'sources': [ 'binding.cc' ],
6-
'cflags': ['-Wno-cast-function-type'],
6+
'conditions': [
7+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
8+
'cflags': ['-Wno-cast-function-type'],
9+
}],
10+
],
711
}
812
]
913
}

test/addons/uv-handle-leak/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

test/addons/worker-addon/binding.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
'target_name': 'binding',
55
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
66
'sources': [ 'binding.cc' ],
7-
'cflags': ['-Wno-cast-function-type'],
7+
'conditions': [
8+
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
9+
'cflags': ['-Wno-cast-function-type'],
10+
}],
11+
],
812
}
913
]
1014
}

0 commit comments

Comments
 (0)