Merge pull request #2498 from offa/gcc12_workaround
Workaround GCC 12 warning
This commit is contained in:
		@@ -1,6 +1,15 @@
 | 
				
			|||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined (__GNUC__) && __GNUC__ == 12
 | 
				
			||||||
 | 
					# pragma GCC diagnostic push
 | 
				
			||||||
 | 
					# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12 
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include "catch.hpp"
 | 
					#include "catch.hpp"
 | 
				
			||||||
 | 
					#if defined (__GNUC__) && __GNUC__ == 12
 | 
				
			||||||
 | 
					# pragma GCC diagnostic pop
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "utils.h"
 | 
					#include "utils.h"
 | 
				
			||||||
#include <chrono>
 | 
					#include <chrono>
 | 
				
			||||||
#include <cstdio>
 | 
					#include <cstdio>
 | 
				
			||||||
@@ -24,4 +33,4 @@
 | 
				
			|||||||
#include "spdlog/sinks/ostream_sink.h"
 | 
					#include "spdlog/sinks/ostream_sink.h"
 | 
				
			||||||
#include "spdlog/sinks/rotating_file_sink.h"
 | 
					#include "spdlog/sinks/rotating_file_sink.h"
 | 
				
			||||||
#include "spdlog/sinks/stdout_color_sinks.h"
 | 
					#include "spdlog/sinks/stdout_color_sinks.h"
 | 
				
			||||||
#include "spdlog/pattern_formatter.h"
 | 
					#include "spdlog/pattern_formatter.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,2 +1,11 @@
 | 
				
			|||||||
 | 
					#if defined (__GNUC__) && __GNUC__ == 12
 | 
				
			||||||
 | 
					# pragma GCC diagnostic push
 | 
				
			||||||
 | 
					# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12 
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CATCH_CONFIG_MAIN
 | 
					#define CATCH_CONFIG_MAIN
 | 
				
			||||||
#include "catch.hpp"
 | 
					#include "catch.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined (__GNUC__) && __GNUC__ == 12
 | 
				
			||||||
 | 
					# pragma GCC diagnostic pop
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user