From a1a3cafc38e1096d1924d90c9ba0094bf6aff7d4 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 fb8c02c86dc..c64e2768198 100644 --- a/node.gyp +++ b/node.gyp @@ -491,6 +491,9 @@ }, 'conditions': [ + ['clang==0 and OS!="win"', { + 'cflags': [ '-Wno-restrict', ], + }], # Pointer authentication for ARM64. ['target_arch=="arm64"', { 'target_conditions': [