Supress -Wimplicit-fallthrough and -Wsign-conversion when including fmt headers
This commit is contained in:
		@@ -10,6 +10,12 @@
 | 
			
		||||
// By default spdlog include its own copy.
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#pragma GCC diagnostic push
 | 
			
		||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 | 
			
		||||
#pragma GCC diagnostic ignored "-Wsign-conversion"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#if !defined(SPDLOG_FMT_EXTERNAL)
 | 
			
		||||
#ifdef SPDLOG_HEADER_ONLY
 | 
			
		||||
#ifndef FMT_HEADER_ONLY
 | 
			
		||||
@@ -25,3 +31,4 @@
 | 
			
		||||
#include <fmt/core.h>
 | 
			
		||||
#include <fmt/format.h>
 | 
			
		||||
#endif
 | 
			
		||||
#pragma GCC diagnostic pop
 | 
			
		||||
@@ -6,9 +6,17 @@
 | 
			
		||||
// Copyright (c) 2012 - 2016, Victor Zverovich
 | 
			
		||||
// All rights reserved.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#pragma GCC diagnostic push
 | 
			
		||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 | 
			
		||||
#pragma GCC diagnostic ignored "-Wsign-conversion"
 | 
			
		||||
 | 
			
		||||
#if !defined(SPDLOG_FMT_EXTERNAL)
 | 
			
		||||
#include "spdlog/fmt/bundled/format-inl.h"
 | 
			
		||||
 | 
			
		||||
#pragma GCC diagnostic pop
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FMT_BEGIN_NAMESPACE
 | 
			
		||||
template struct FMT_API internal::basic_data<void>;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user