From bd20afd6ce3d72998bff1dbcc0eaa035fedd08ab Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 12 Jul 2020 23:38:08 +0100 Subject: Reduce buildlogspam - Turn off unused parameter warning --- SetFlags.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SetFlags.cmake b/SetFlags.cmake index 9c635b5fd..cf8cacd47 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -129,6 +129,9 @@ function(set_exe_flags TARGET) # All warnings: -Wall -Wextra + + # Excessive amount of logspam, disable for now: + -Wno-unused-parameter ) if(CMAKE_CXX_COMPILE_ID STREQUAL "Clang") @@ -140,7 +143,7 @@ function(set_exe_flags TARGET) # TODO: actually fix the warnings instead of disabling them # or at least disable on a file-level basis: - -Wno-unused-parameter -Wno-missing-noreturn -Wno-padded -Wno-implicit-fallthrough + -Wno-missing-noreturn -Wno-padded -Wno-implicit-fallthrough -Wno-double-promotion # This is a pretty useless warning, we've already got -Wswitch which is what we need: -- cgit v1.2.3