Set no-unused-lambda-capture

This commit is contained in:
Patricia Aas 2021-09-10 15:04:10 +02:00
parent adbe00a466
commit 36fc3f5a74

View file

@ -46,6 +46,7 @@ function(set_project_warnings)
-Wnull-dereference # warn if a null dereference is detected -Wnull-dereference # warn if a null dereference is detected
-Wdouble-promotion # warn if float is implicit promoted to double -Wdouble-promotion # warn if float is implicit promoted to double
-Wformat=2 # warn on security issues around functions that format output (ie printf) -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) if (WARNINGS_AS_ERRORS)