mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
build: suppress OpenSSL asm warnings with clang
Unlike gcc, clang warns when arguments are passed that are not used. For OpenSSL, this includes passing C preprocessor directives when compiling `.s` files. Suppress the warning (`-Wno-unused-command-line-argument`) when using clang. Signed-off-by: Richard Lau <richard.lau@ibm.com> PR-URL: https://github.com/nodejs/node/pull/66023 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
7c01b98cfa
commit
d56d2ec75c
1 file changed
+3
Vendored
+3
@@ -77,5 +77,8 @@
|
||||
# Other architectures don't use assembly
|
||||
'includes': ['config/archs/linux-x86_64/asm/openssl.gypi'],
|
||||
}],
|
||||
[ 'clang==1 and OS!="win"', {
|
||||
'cflags': [ '-Wno-unused-command-line-argument' ],
|
||||
}],
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user