From 28f784af502791c5bd92bf0ffaf878e59bda320b Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 21 Dec 2024 16:46:35 -0600 Subject: [PATCH] Turn off -Wpedantic --- CMakeLists.txt | 2 +- src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3ffbbf..c6e7bce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ if(LIBASSERT_WERROR_BUILD) set( warning_options ${warning_options} - $<$>:-Werror -Wpedantic> + $<$>:-Werror> $<$:/WX> ) endif() diff --git a/src/utils.cpp b/src/utils.cpp index 14e1c14..9dfce77 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -165,7 +165,7 @@ namespace libassert::detail { str.replace(match_begin, end - match_begin, replacement); cursor = match_begin + replacement.length(); } - }; + } LIBASSERT_ATTR_COLD std::string indent(const std::string_view str, size_t depth, char c, bool ignore_first) {