From 5e5408307599fdb0e80ca8bd7359c2ecbbd80b17 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 4 Sep 2024 08:14:16 +0100 Subject: [PATCH] build: turn off `-Wrestrict` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/54737 Refs: https://github.com/nodejs/node/issues/54736 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Yagiz Nizipli Reviewed-By: Joyee Cheung Reviewed-By: Rafael Gonzaga Reviewed-By: Jake Yuesong Li --- node.gyp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node.gyp b/node.gyp index da7f3e9940cd19..33bc7d985fe230 100644 --- a/node.gyp +++ b/node.gyp @@ -469,6 +469,9 @@ }, 'conditions': [ + ['clang==0 and OS!="win"', { + 'cflags': [ '-Wno-restrict', ], + }], # Pointer authentication for ARM64. ['target_arch=="arm64"', { 'target_conditions': [