From 746e2632c645fa616e6989787b27a1e6274243e3 Mon Sep 17 00:00:00 2001 From: Eric Boren Date: Wed, 21 Jun 2017 13:39:32 -0400 Subject: Move all Linux GCE bots to Debian NOTREECHECKS:true Bug: skia: Change-Id: I612989c6ce2f309d2f70f896500f73e4baa971a7 Reviewed-on: https://skia-review.googlesource.com/19811 Commit-Queue: Eric Boren Reviewed-by: Eric Boren --- tests/RecordTestUtils.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/RecordTestUtils.h') diff --git a/tests/RecordTestUtils.h b/tests/RecordTestUtils.h index 853ee21908..5701dec5d9 100644 --- a/tests/RecordTestUtils.h +++ b/tests/RecordTestUtils.h @@ -33,9 +33,20 @@ static const T* assert_type(skiatest::Reporter* r, const SkRecord& record, int i record.visit(index, reader); REPORTER_ASSERT(r, T::kType == reader.type); REPORTER_ASSERT(r, SkToBool(reader.ptr)); + + // This appears to be a bug in GCC 6.3. There's no problem here. +#if defined(__GNUC__) && !defined(__clang__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wreturn-local-addr" +#endif return reader.ptr; +#if defined(__GNUC__) && !defined(__clang__) + #pragma GCC diagnostic pop +#endif } + + template struct MatchType { template int operator()(const T&) { return 0; } int operator()(const DrawT&) { return 1; } -- cgit v1.2.3