From 7f6b3674978d1852e06263821c99403e3259d397 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Mon, 24 Dec 2018 20:09:20 +0200 Subject: [PATCH] Disable null pointer arithmetic warnings for GLES1 conformance tests Required for the rest of Chromium to compile with the warning enabled. Bug: chromium:766891 Change-Id: Ie319df01599434011dc953532a30ad68d6a7c9a3 Reviewed-on: https://chromium-review.googlesource.com/c/1390659 Commit-Queue: Jamie Madill Reviewed-by: Jamie Madill --- src/tests/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/BUILD.gn b/src/tests/BUILD.gn index f4203d621..648d2ac0c 100644 --- a/src/tests/BUILD.gn +++ b/src/tests/BUILD.gn @@ -363,6 +363,9 @@ if (build_angle_gles1_conform_tests) { "-Wno-unused-const-variable", "-Wno-unused-variable", "-Wno-int-to-pointer-cast", + + # Upstream tests do null pointer arithmetic, so disable those warnings. + "-Wno-null-pointer-arithmetic", ] } }