mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:20:05 +00:00 
			
		
		
		
	Guard pragma warning statements with ifdef msvc
This commit is contained in:
		
							parent
							
								
									ec45e0bce0
								
							
						
					
					
						commit
						509fc76653
					
				
					 12 changed files with 100 additions and 28 deletions
				
			
		|  | @ -3,9 +3,15 @@ | |||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| #pragma warning(push, 0) | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(push, 0) | ||||
| #endif | ||||
| 
 | ||||
| #include <spdlog/logger.h> | ||||
| #pragma warning(pop) | ||||
| 
 | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(pop) | ||||
| #endif | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  |  | |||
|  | @ -3,11 +3,17 @@ | |||
| #include <scwx/network/dir_list.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
| 
 | ||||
| #pragma warning(push, 0) | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(push, 0) | ||||
| #endif | ||||
| 
 | ||||
| #include <boost/algorithm/string/trim.hpp> | ||||
| #include <cpr/cpr.h> | ||||
| #include <libxml/HTMLparser.h> | ||||
| #pragma warning(pop) | ||||
| 
 | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(pop) | ||||
| #endif | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  |  | |||
|  | @ -6,11 +6,17 @@ | |||
| #include <regex> | ||||
| #include <shared_mutex> | ||||
| 
 | ||||
| #pragma warning(push, 0) | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(push, 0) | ||||
| #endif | ||||
| 
 | ||||
| #define LIBXML_HTML_ENABLED | ||||
| #include <cpr/cpr.h> | ||||
| #include <libxml/HTMLparser.h> | ||||
| #pragma warning(pop) | ||||
| 
 | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(pop) | ||||
| #endif | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  |  | |||
|  | @ -5,12 +5,18 @@ | |||
| 
 | ||||
| #include <fstream> | ||||
| 
 | ||||
| #pragma warning(push) | ||||
| #pragma warning(disable : 4706) | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(push) | ||||
| #   pragma warning(disable : 4706) | ||||
| #endif | ||||
| 
 | ||||
| #include <boost/iostreams/copy.hpp> | ||||
| #include <boost/iostreams/filtering_streambuf.hpp> | ||||
| #include <boost/iostreams/filter/zlib.hpp> | ||||
| #pragma warning(pop) | ||||
| 
 | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(pop) | ||||
| #endif | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -39,7 +45,7 @@ public: | |||
| Level3File::Level3File() : p(std::make_unique<Level3FileImpl>()) {} | ||||
| Level3File::~Level3File() = default; | ||||
| 
 | ||||
| Level3File::Level3File(Level3File&&) noexcept = default; | ||||
| Level3File::Level3File(Level3File&&) noexcept            = default; | ||||
| Level3File& Level3File::operator=(Level3File&&) noexcept = default; | ||||
| 
 | ||||
| std::shared_ptr<awips::WmoHeader> Level3File::wmo_header() const | ||||
|  |  | |||
|  | @ -6,12 +6,18 @@ | |||
| #include <fstream> | ||||
| #include <sstream> | ||||
| 
 | ||||
| #pragma warning(push) | ||||
| #pragma warning(disable : 4706) | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(push) | ||||
| #   pragma warning(disable : 4706) | ||||
| #endif | ||||
| 
 | ||||
| #include <boost/iostreams/copy.hpp> | ||||
| #include <boost/iostreams/filtering_streambuf.hpp> | ||||
| #include <boost/iostreams/filter/gzip.hpp> | ||||
| #pragma warning(pop) | ||||
| 
 | ||||
| #if defined(_MSC_VER) | ||||
| #   pragma warning(pop) | ||||
| #endif | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat