From: Tom Jackson Date: Tue, 20 Nov 2012 18:55:08 +0000 (-0800) Subject: Supressing GCC 4.7 warning for Optional X-Git-Tag: v0.22.0~1130 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b1e7193783d8d643f01058692314ee1da1ef611;p=folly.git 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 --- 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,