mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Merge pull request #2498 from offa/gcc12_workaround
Workaround GCC 12 warning
This commit is contained in:
commit
7fa59cf555
@ -1,6 +1,15 @@
|
||||
#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"
|
||||
#if defined (__GNUC__) && __GNUC__ == 12
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#include "utils.h"
|
||||
#include <chrono>
|
||||
#include <cstdio>
|
||||
|
@ -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
|
||||
#include "catch.hpp"
|
||||
|
||||
#if defined (__GNUC__) && __GNUC__ == 12
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user