]> Savannah Git Hosting - gnulib.git/commit
parse-datetime: pacify gcc 14 -Wformat-security
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Jan 2025 20:45:47 +0000 (12:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Jan 2025 20:46:28 +0000 (12:46 -0800)
commit0684ecbdc9bfb2b4b38d7be327974f8fb8768870
treef4869f5442afcde8128dee5929508f484bdecbcc
parentb72398ac4a6a30a1b41091c350ffc369f5f23f86
parse-datetime: pacify gcc 14 -Wformat-security

I found this when updating GNU patch.
* lib/parse-datetime.y (dbg_herald): New static function.
(dbg_printf): Use it.
(dbg_fputs): New static function.  All dbg_printf callers
changed to use it, if their formats contain no directives.
(parse_datetime_body): Call fputs instead of fprintf
if either will do.
ChangeLog
lib/parse-datetime.y