From 4b1e7193783d8d643f01058692314ee1da1ef611 Mon Sep 17 00:00:00 2001 From: Tom Jackson Date: Tue, 20 Nov 2012 10:55:08 -0800 Subject: [PATCH] Supressing GCC 4.7 warning for Optional Summary: Supressing the warning for GCC4.7, and supressing the error supressing the warning in GCC4.6. Test Plan: Compile, run unit tests on GCC4.6 and GCC4.7 Reviewed By: ldbrandy@fb.com FB internal diff: D635982 --- folly/Optional.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/folly/Optional.h b/folly/Optional.h index 98b8775d..506bbb89 100644 --- a/folly/Optional.h +++ b/folly/Optional.h @@ -75,6 +75,8 @@ const None none = nullptr; */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wuninitialized" +#pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" template class Optional : boost::totally_ordered, -- 2.34.1