Tests: Fix -Wno-error=dev test

Commit 28f2d750ed (Add -Werror and -Wno-error command-line options,
2015-12-21, v3.5.0-rc1~61^2~1) added -W[no-]error along with tests, but
wrote the wrong name in the RunCMakeTest.cmake that actually runs the
test. As a result, the -Wno-error=dev test has never actually run, and
in fact the expected output had an incorrect line number. Fix the
expected output, and fix the RunCMakeTest.cmake to actually run the
test.
This commit is contained in:
Matthew Woehlke
2026-03-17 13:09:08 -04:00
parent 66a5deb5cf
commit 7097e6712c
2 changed files with 2 additions and 2 deletions
@@ -1053,7 +1053,7 @@ run_cmake(Werror_dev)
unset(RunCMake_TEST_OPTIONS)
set(RunCMake_TEST_OPTIONS -Wno-error=dev)
run_cmake(Wno-error_deprecated)
run_cmake(Wno-error_dev)
unset(RunCMake_TEST_OPTIONS)
# -Wdev should not override deprecated options if specified
@@ -4,7 +4,7 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-dev to suppress it\.
CMake Warning \(dev\) at Wno-error_dev\.cmake:6 \(include\):
CMake Warning \(dev\) at Wno-error_dev\.cmake:7 \(include\):
include\(\) given empty file name \(ignored\)\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)