From 763d1fe6a396d6b50f1eee8a8c32731cfe21255d Mon Sep 17 00:00:00 2001 From: vitaut Date: Tue, 8 Mar 2016 07:36:22 -0800 Subject: [PATCH] Suppress warnings in Google Mock --- test/gmock/gmock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/gmock/gmock.h b/test/gmock/gmock.h index e8dd7fc3..17bde1e7 100644 --- a/test/gmock/gmock.h +++ b/test/gmock/gmock.h @@ -36,6 +36,10 @@ #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_H_ +#ifdef __clang__ +# pragma clang diagnostic ignored "-Wc99-extensions" +#endif + // This file implements the following syntax: // // ON_CALL(mock_object.Method(...))