markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
832 stars 82 forks source link

util.c: make debug helper `-Wformat-security`-clean #328

Closed trofi closed 1 year ago

trofi commented 1 year ago

Without the change gcc-14 fails the build with -Werror=format-security as:

util.c:340:25: error: format not a string literal and no format arguments [-Werror=format-security]
  340 |         fprintf(stream, buf);
      |                         ^~~

It's a harmless warning as UUID has a well-defined set of characters. But fputs() expresses intent more directly to print the string as is.

JackSlateur commented 1 year ago

Thank you