From e65cff2a8fca5512898d8bc539bd9002f7f42692 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 5 Apr 2019 23:31:04 +0200 Subject: [PATCH] :hammer: small cleanup --- Makefile | 2 +- test/src/unit-allocator.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2a871dc8..c6a1aae5 100644 --- a/Makefile +++ b/Makefile @@ -125,7 +125,7 @@ pedantic_clang: # calling GCC with most warnings pedantic_gcc: - $(MAKE) json_unit CXX=$(COMPILER_DIR)/g++ CXXFLAGS="-D_Atomic=volatile \ + $(MAKE) json_unit CXX=$(COMPILER_DIR)/g++ CXXFLAGS=" \ -std=c++11 \ -Waddress \ -Waddress-of-packed-member \ diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 6374640f..c46afc59 100644 --- a/test/src/unit-allocator.cpp +++ b/test/src/unit-allocator.cpp @@ -69,9 +69,9 @@ TEST_CASE("bad_alloc") namespace { -static bool next_construct_fails = false; -static bool next_destroy_fails = false; -static bool next_deallocate_fails = false; +bool next_construct_fails = false; +bool next_destroy_fails = false; +bool next_deallocate_fails = false; template struct my_allocator : std::allocator