From f32fa3ea308b0a875e1df4894d619e0e34ea0866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Gu=C5=A1tin?= Date: Mon, 16 Dec 2024 20:41:12 +0100 Subject: [PATCH] Ignore warnings about unknown/unused warning flags --- CMakePresets.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index e016e3d..24d9170 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -21,10 +21,10 @@ "generator": "Unix Makefiles", "cacheVariables": { "CMAKE_C_COMPILER": "gcc", - "CMAKE_C_FLAGS_INIT": "-Wall -Wextra -pedantic -Wconversion -Wsign-conversion -Wdouble-promotion -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-variable -Wpacked -Wshadow -Waggregate-return -Wformat-security -Wlogical-not-parentheses -Wmissing-declarations -Wnull-dereference -Wduplicated-cond -Wno-padded -Wno-type-limits -Wno-float-equal", + "CMAKE_C_FLAGS_INIT": "-Wall -Wextra -pedantic -Wconversion -Wsign-conversion -Wdouble-promotion -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-variable -Wpacked -Wshadow -Waggregate-return -Wformat-security -Wlogical-not-parentheses -Wmissing-declarations -Wnull-dereference -Wduplicated-cond -Wno-padded -Wno-type-limits -Wno-float-equal -Wno-unused-command-line-argument", "CMAKE_C_FLAGS_DEBUG": "-O0 -g3 -DDEBUG=1", "CMAKE_C_FLAGS_RELEASE": "-O3 -Werror", - "CMAKE_C_FLAGS_MINSIZEREL": "-Os -s -Werror" + "CMAKE_C_FLAGS_MINSIZEREL": "-Os -Werror" } }, { @@ -33,7 +33,7 @@ "generator": "Unix Makefiles", "cacheVariables": { "CMAKE_C_COMPILER": "clang", - "CMAKE_C_FLAGS_INIT": "-Weverything -Wno-unsafe-buffer-usage", + "CMAKE_C_FLAGS_INIT": "-Weverything -Wno-unsafe-buffer-usage -Wno-unknown-warning-option", "CMAKE_C_FLAGS_DEBUG": "-O0 -g3 -coverage -DDEBUG=1", "CMAKE_C_FLAGS_RELEASE": "-O3 -Werror", "CMAKE_C_FLAGS_MINSIZEREL": "-Os -Werror"