Supressing GCC 4.7 warning for Optional
authorTom Jackson <tjackson@fb.com>
Tue, 20 Nov 2012 18:55:08 +0000 (10:55 -0800)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:45:40 +0000 (14:45 -0800)
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

index 98b8775df76fc877a22c6c14e991955dac86640b..506bbb8972a88657a12b02a0634ea09dfe7f1540 100644 (file)
@@ -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 Value>
 class Optional : boost::totally_ordered<Optional<Value>,