]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: _printf_format_ annotate and adjust ELFDBG modifiers
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 17 Oct 2024 18:17:25 +0000 (19:17 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 18 Oct 2024 18:22:11 +0000 (13:22 -0500)
commitd567219aa8361ae80cfa0b94f19e37db12e33fff
treee91fde969a08c41a54edf21528d2cd5c856c7213
parente16d92b429fe01bfd50468b35bbf39fef6b678c1
libkmod: _printf_format_ annotate and adjust ELFDBG modifiers

The recently added "always build ELFDBG" patch is already paying
dividends... Clang is flagging a "fmt" is not literal warning.

That's clearly wrong, although without _printf_format_ clang was
struggling to figure things out. With the attribute, it helpfully
flagged that handful of the modifiers are wrong.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/172
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c