diff --git a/rosbag2/include/rosbag2/converter.hpp b/rosbag2/include/rosbag2/converter.hpp index 4ef5530ebe..50ac1239b2 100644 --- a/rosbag2/include/rosbag2/converter.hpp +++ b/rosbag2/include/rosbag2/converter.hpp @@ -85,4 +85,8 @@ class ROSBAG2_PUBLIC Converter } // namespace rosbag2 +#ifdef _WIN32 +# pragma warning(pop) +#endif + #endif // ROSBAG2__CONVERTER_HPP_ diff --git a/rosbag2/include/rosbag2/sequential_reader.hpp b/rosbag2/include/rosbag2/sequential_reader.hpp index 633549869e..645b042eed 100644 --- a/rosbag2/include/rosbag2/sequential_reader.hpp +++ b/rosbag2/include/rosbag2/sequential_reader.hpp @@ -108,4 +108,8 @@ class ROSBAG2_PUBLIC SequentialReader } // namespace rosbag2 +#ifdef _WIN32 +# pragma warning(pop) +#endif + #endif // ROSBAG2__SEQUENTIAL_READER_HPP_ diff --git a/rosbag2/include/rosbag2/writer.hpp b/rosbag2/include/rosbag2/writer.hpp index 95d44c4aa4..848ae45ec6 100644 --- a/rosbag2/include/rosbag2/writer.hpp +++ b/rosbag2/include/rosbag2/writer.hpp @@ -96,4 +96,8 @@ class ROSBAG2_PUBLIC Writer } // namespace rosbag2 +#ifdef _WIN32 +# pragma warning(pop) +#endif + #endif // ROSBAG2__WRITER_HPP_