Commit 31fc1aca authored by gabime's avatar gabime

Supress -Wimplicit-fallthrough and -Wsign-conversion when including fmt headers

parent 0db4b04a
......@@ -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
\ No newline at end of file
......@@ -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>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment