diff options
author | Marcin Junczys-Dowmunt <marcinjd@microsoft.com> | 2018-12-08 01:39:20 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <marcinjd@microsoft.com> | 2018-12-08 01:39:20 +0300 |
commit | cacbcfdf7f6c643893678ecc9d64bc028847579c (patch) | |
tree | 9f57bdd95c1349c227abd5bc9a9cea8753205a48 | |
parent | 67307be077cd752883dd9878f95d5c83773f6d10 (diff) |
surround boost headers with pragmas to avoid warnings
-rwxr-xr-x | src/common/file_stream.h | 7 | ||||
-rwxr-xr-x | src/common/timer.h | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/common/file_stream.h b/src/common/file_stream.h index 87cb7f9a..92ae8631 100755 --- a/src/common/file_stream.h +++ b/src/common/file_stream.h @@ -9,8 +9,15 @@ #include "3rd_party/zstr/zstr.hpp" #pragma GCC diagnostic pop +#ifdef _GNUC_ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsuggest-override" +#endif #include <boost/iostreams/device/file_descriptor.hpp> #include <boost/iostreams/stream_buffer.hpp> +#ifdef _GNUC_ +#pragma GCC diagnostic pop +#endif #include <iostream> #include <memory> diff --git a/src/common/timer.h b/src/common/timer.h index 4172cfc7..264576bf 100755 --- a/src/common/timer.h +++ b/src/common/timer.h @@ -1,6 +1,14 @@ #pragma once +#ifdef _GNUC_ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsuggest-override" +#endif #include <boost/timer/timer.hpp> +#ifdef _GNUC_ +#pragma GCC diagnostic pop +#endif + #ifdef _MSC_VER // (needed on Windows only to resolve a link error, but causes a warning on Linux) #include <boost/chrono.hpp> |