Pacify gcc 14 -Wanalyzer-infinite-loop

* gnulib.modules: Add stddef, for ‘unreachable’.
* src/compare.c (dumpdir_cmp): Tell GCC that the default case
is unreachable.  Make just one pass through the string,
instead of two passes (one via strcmp, another via strlen).
This commit is contained in:
Paul Eggert
2024-07-27 00:05:49 -07:00
parent 45a86d45b2
commit fd33f25989
2 changed files with 18 additions and 14 deletions

View File

@@ -92,6 +92,7 @@ setenv
snprintf
stat-time
stdbool
stddef
stdint
stpcpy
stdopen