From 3dd054aca28381a859b117464e5c2f44b2d9e380 Mon Sep 17 00:00:00 2001 From: Morwenn Date: Sun, 6 Aug 2023 16:03:55 +0200 Subject: [PATCH] Remove noisy -Winline warning from test suite warnings --- cmake/cpp-sort-utils.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/cpp-sort-utils.cmake b/cmake/cpp-sort-utils.cmake index 5a422a1e..fb946ef1 100644 --- a/cmake/cpp-sort-utils.cmake +++ b/cmake/cpp-sort-utils.cmake @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2022 Morwenn +# Copyright (c) 2019-2023 Morwenn # SPDX-License-Identifier: MIT # Add a selection of warnings to a target @@ -7,14 +7,11 @@ macro(cppsort_add_warnings target) target_compile_options(${target} PRIVATE /W2) else() target_compile_options(${target} PRIVATE - -Wall -Wextra -Wcast-align -Winline -Wmissing-declarations -Wmissing-include-dirs + -Wall -Wextra -Wcast-align -Wmissing-declarations -Wmissing-include-dirs -Wnon-virtual-dtor -Wodr -Wpedantic -Wredundant-decls -Wundef -Wunreachable-code $<$:-Wlogical-op -Wuseless-cast -Wzero-as-null-pointer-constant> # The warning when initializing an std::array is just too much of a bother $<$:-Wno-missing-braces> - # Without this we get thousands of -Winline warnings without even explicitly - # asking to inline anything, which makes compilation results unreadable - $<$:-Wno-inline> ) endif() endmacro()