From a0bc4cca74be7de2a540439920c8f15d0a671b74 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 26 Jun 2013 13:06:26 +0200 Subject: [PATCH] build: darwin: disable -fstrict-aliasing warnings gcc 4.2.1 as shipped with Xcode complains incessantly about aliasing warnings, which, while technically true, disregards the fact that the aliased types have the same layout in memory. Squelch the warnings. --- common.gypi | 1 + 1 file changed, 1 insertion(+) diff --git a/common.gypi b/common.gypi index c3462821..67291fdc 100644 --- a/common.gypi +++ b/common.gypi @@ -36,6 +36,7 @@ }, 'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL': '0', + 'OTHER_CFLAGS': [ '-Wno-strict-aliasing' ], }, 'conditions': [ ['OS != "win"', {