From 3f194bebffafb62e107db5f54d932c64d39d264b Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 16 Sep 2012 16:04:28 +0000 Subject: [PATCH] Used technique described in http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html to turn off excessive warnings generated by boost BFS header --- gtsam/inference/graph-inl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtsam/inference/graph-inl.h b/gtsam/inference/graph-inl.h index ff65147cc..48cfffd7c 100644 --- a/gtsam/inference/graph-inl.h +++ b/gtsam/inference/graph-inl.h @@ -19,7 +19,11 @@ #include #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wunneeded-internal-declaration" #include +#pragma GCC diagnostic pop #include #include