]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: list: suppress -Wformat-nonliteral for Solaris
authorSam James <sam@gentoo.org>
Sun, 14 Apr 2024 07:08:00 +0000 (08:08 +0100)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 3 Jun 2024 09:32:34 +0000 (12:32 +0300)
commitb69768c8bd1a34fde311935c551d061ba52d9a3f
treef293c7fef2d1b7278f9af34e7f689fd29fda3869
parentbb90e1f66d9beb490c4c99763e79519045968710
xz: list: suppress -Wformat-nonliteral for Solaris

Solaris' GCC can't understand that our use is fine, unlike modern compilers:
```
list.c: In function 'print_totals_basic':
list.c:1191:4: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
  uint64_to_str(totals.files, 0));
  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
```

It's presumably because of older gettext missing format attributes.

This is with `gcc (GCC) 7.3.0`.
src/xz/list.c