mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 21:00:05 +00:00 
			
		
		
		
	Warning pragmas
This commit is contained in:
		
							parent
							
								
									d8b669262c
								
							
						
					
					
						commit
						cdd4ced28e
					
				
					 7 changed files with 63 additions and 2 deletions
				
			
		|  | @ -14,14 +14,20 @@ | ||||||
| #include <mutex> | #include <mutex> | ||||||
| #include <shared_mutex> | #include <shared_mutex> | ||||||
| 
 | 
 | ||||||
| #pragma warning(push, 0) | #if defined(_MSC_VER) | ||||||
|  | #   pragma warning(push, 0) | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #include <boost/asio/steady_timer.hpp> | #include <boost/asio/steady_timer.hpp> | ||||||
| #include <boost/container_hash/hash.hpp> | #include <boost/container_hash/hash.hpp> | ||||||
| #include <boost/range/irange.hpp> | #include <boost/range/irange.hpp> | ||||||
| #include <boost/timer/timer.hpp> | #include <boost/timer/timer.hpp> | ||||||
| #include <fmt/chrono.h> | #include <fmt/chrono.h> | ||||||
| #include <QMapLibreGL/QMapLibreGL> | #include <QMapLibreGL/QMapLibreGL> | ||||||
| #pragma warning(pop) | 
 | ||||||
|  | #if defined(_MSC_VER) | ||||||
|  | #   pragma warning(pop) | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -27,6 +27,11 @@ | ||||||
| #   pragma warning(push, 0) | #   pragma warning(push, 0) | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic push | ||||||
|  | #   pragma GCC diagnostic ignored "-Wpedantic" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| // #include <freetype-gl.h> (exclude opengl.h)
 | // #include <freetype-gl.h> (exclude opengl.h)
 | ||||||
| #include <platform.h> | #include <platform.h> | ||||||
| #include <vec234.h> | #include <vec234.h> | ||||||
|  | @ -35,6 +40,10 @@ | ||||||
| #include <texture-font.h> | #include <texture-font.h> | ||||||
| #include <ftgl-utils.h> | #include <ftgl-utils.h> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic pop | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #if defined(_MSC_VER) | #if defined(_MSC_VER) | ||||||
| #   pragma warning(pop) | #   pragma warning(pop) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -63,6 +63,12 @@ struct DirListSAXData | ||||||
|    std::vector<DirListRecord> records_; |    std::vector<DirListRecord> records_; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | // Unspecified fields are initialized to zero, ignore warning
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic push | ||||||
|  | #   pragma GCC diagnostic ignored "-Wmissing-field-initializers" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| static htmlSAXHandler saxHandler_ //
 | static htmlSAXHandler saxHandler_ //
 | ||||||
|    {.startElement = &DirListSAXHandler::StartElement, |    {.startElement = &DirListSAXHandler::StartElement, | ||||||
|     .endElement   = &DirListSAXHandler::EndElement, |     .endElement   = &DirListSAXHandler::EndElement, | ||||||
|  | @ -71,6 +77,10 @@ static htmlSAXHandler saxHandler_ // | ||||||
|     .error        = &DirListSAXHandler::Error, |     .error        = &DirListSAXHandler::Error, | ||||||
|     .fatalError   = &DirListSAXHandler::Critical}; |     .fatalError   = &DirListSAXHandler::Critical}; | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic pop | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| std::vector<DirListRecord> DirList(const std::string& baseUrl) | std::vector<DirListRecord> DirList(const std::string& baseUrl) | ||||||
| { | { | ||||||
|    using namespace std::chrono; |    using namespace std::chrono; | ||||||
|  |  | ||||||
|  | @ -8,10 +8,19 @@ | ||||||
| #include <fstream> | #include <fstream> | ||||||
| #include <sstream> | #include <sstream> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic push | ||||||
|  | #   pragma GCC diagnostic ignored "-Wdeprecated-copy" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #include <boost/iostreams/copy.hpp> | #include <boost/iostreams/copy.hpp> | ||||||
| #include <boost/iostreams/filtering_streambuf.hpp> | #include <boost/iostreams/filtering_streambuf.hpp> | ||||||
| #include <boost/iostreams/filter/bzip2.hpp> | #include <boost/iostreams/filter/bzip2.hpp> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic pop | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace wsr88d | namespace wsr88d | ||||||
|  |  | ||||||
|  | @ -10,10 +10,19 @@ | ||||||
| #   pragma warning(disable : 4706) | #   pragma warning(disable : 4706) | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic push | ||||||
|  | #   pragma GCC diagnostic ignored "-Wdeprecated-copy" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #include <boost/iostreams/copy.hpp> | #include <boost/iostreams/copy.hpp> | ||||||
| #include <boost/iostreams/filtering_streambuf.hpp> | #include <boost/iostreams/filtering_streambuf.hpp> | ||||||
| #include <boost/iostreams/filter/zlib.hpp> | #include <boost/iostreams/filter/zlib.hpp> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic pop | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #if defined(_MSC_VER) | #if defined(_MSC_VER) | ||||||
| #   pragma warning(pop) | #   pragma warning(pop) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -11,10 +11,19 @@ | ||||||
| #   pragma warning(disable : 4706) | #   pragma warning(disable : 4706) | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic push | ||||||
|  | #   pragma GCC diagnostic ignored "-Wdeprecated-copy" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #include <boost/iostreams/copy.hpp> | #include <boost/iostreams/copy.hpp> | ||||||
| #include <boost/iostreams/filtering_streambuf.hpp> | #include <boost/iostreams/filtering_streambuf.hpp> | ||||||
| #include <boost/iostreams/filter/gzip.hpp> | #include <boost/iostreams/filter/gzip.hpp> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic pop | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #if defined(_MSC_VER) | #if defined(_MSC_VER) | ||||||
| #   pragma warning(pop) | #   pragma warning(pop) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -5,10 +5,19 @@ | ||||||
| #include <istream> | #include <istream> | ||||||
| #include <string> | #include <string> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic push | ||||||
|  | #   pragma GCC diagnostic ignored "-Wdeprecated-copy" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #include <boost/iostreams/copy.hpp> | #include <boost/iostreams/copy.hpp> | ||||||
| #include <boost/iostreams/filtering_streambuf.hpp> | #include <boost/iostreams/filtering_streambuf.hpp> | ||||||
| #include <boost/iostreams/filter/bzip2.hpp> | #include <boost/iostreams/filter/bzip2.hpp> | ||||||
| 
 | 
 | ||||||
|  | #if defined(__GNUC__) | ||||||
|  | #   pragma GCC diagnostic pop | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| namespace scwx | namespace scwx | ||||||
| { | { | ||||||
| namespace wsr88d | namespace wsr88d | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat