1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-05-08 22:37:04 +08:00

TestDriver: Fix -Wstrict-overflow for GCC 7 and earlier

Fixes: #13955
This commit is contained in:
Nikita Nemkin 2025-02-22 19:13:30 +05:00
parent 96d71dbbbd
commit f9551f8bd7

View File

@ -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) {