From 2d25566a1c5162ce3fd6bfc268d5665de182af89 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 8 Nov 2010 15:23:31 -0600 Subject: [PATCH] Fix silly error in cppchecktargets --- CppcheckTargets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppcheckTargets.cmake b/CppcheckTargets.cmake index 24090f6..f753105 100644 --- a/CppcheckTargets.cmake +++ b/CppcheckTargets.cmake @@ -64,7 +64,7 @@ function(add_cppcheck_sources _targetname) list(APPEND CPPCHECK_FAIL_REGULAR_EXPRESSION ${CPPCHECK_WARN_REGULAR_EXPRESSION}) - list(REMOVE_AT _input ${_unused_func}) + list(REMOVE_AT _input ${_fail_on_warn}) endif() set(_files)