From 36fc3f5a74caf081e9c6d7ed171085b38e35d9db Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 15:04:10 +0200 Subject: [PATCH] Set no-unused-lambda-capture --- cmake/CompilerWarnings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index b156223..2d1801a 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -46,6 +46,7 @@ function(set_project_warnings) -Wnull-dereference # warn if a null dereference is detected -Wdouble-promotion # warn if float is implicit promoted to double -Wformat=2 # warn on security issues around functions that format output (ie printf) + -Wno-unused-lambda-capture # We like explicit capture ) if (WARNINGS_AS_ERRORS)