From 2c8f3643f9fe28e4a598aab3da633afb6447b81d 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 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-command-line-argument`) when using clang. Signed-off-by: Richard Lau --- 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 d1b3fbbcd6a7..6ad606568074 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' ], + }], ], }