From f9551f8bd7c1e5c16466df33265bb8d83f81ffda Mon Sep 17 00:00:00 2001 From: Nikita Nemkin Date: Sat, 22 Feb 2025 19:13:30 +0500 Subject: TestDriver: Fix -Wstrict-overflow for GCC 7 and earlier Fixes: #13955 --- Templates/TestDriver.cxx.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 3bb2fd6..0ccecfd 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -97,7 +97,7 @@ int main(int ac, char* av[]) /* If no test name was given */ /* process command line with user function. */ - if (ac < 2) { + if (ac > 0 && ac < 2) { /* Ask for a test. */ printf("Available tests:\n"); for (i = 0; i < NumTests; ++i) { -- cgit v0.12