From d4626e5f1e1923072fe242539e227d507c91b3d4 Mon Sep 17 00:00:00 2001 From: kjellander Date: Wed, 7 Sep 2016 02:33:01 -0700 Subject: [PATCH] Disable -Wsentinel warning for Linux 32-bit builds. BUG=chromium:644167 NOTRY=True Review-Url: https://codereview.webrtc.org/2316943002 Cr-Commit-Position: refs/heads/master@{#14099} --- webrtc/examples/BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn index 2d69127783..8cd301e806 100644 --- a/webrtc/examples/BUILD.gn +++ b/webrtc/examples/BUILD.gn @@ -389,6 +389,12 @@ if (is_linux || is_win) { "-Wno-sign-compare", ] } + if (is_linux && target_cpu == "x86") { + cflags = [ + # Needed to compile on Linux 32-bit. + "-Wno-sentinel", + ] + } } rtc_executable("peerconnection_client") { @@ -445,6 +451,7 @@ if (is_linux || is_win) { deps += [ "//third_party/jsoncpp" ] } } + rtc_executable("peerconnection_server") { sources = [ "peerconnection/server/data_socket.cc",