From d56d2ec75c5071ee527c45f32eaff7340314d282 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 14 Sep 2026 16:03:35 +0000 Subject: [PATCH] build: suppress OpenSSL asm warnings with clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 PR-URL: https://github.com/nodejs/node/pull/66023 Reviewed-By: Filip Skokan Reviewed-By: Luigi Pinca Reviewed-By: René Reviewed-By: Xuguang Mei Reviewed-By: James M Snell --- deps/openssl/openssl_asm.gypi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/openssl/openssl_asm.gypi b/deps/openssl/openssl_asm.gypi index d1b3fbbcd6a..6ad60656807 100644 --- a/deps/openssl/openssl_asm.gypi +++ b/deps/openssl/openssl_asm.gypi @@ -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' ], + }], ], }