Re: New GCC plugin in 3rd party project (FRRouting): extended printf warnings

2020-07-17 Thread David Lamparter
P.S.: here's the output you get from the included format-test.c: $ gcc -Wall -Wextra -Wno-unused -fplugin=./frr-format.so -fno-diagnostics-show-caret -c -o format-test.o format-test.c format-test.c: In function ‘test’: format-test.c:38:12: warning: format ‘%zu’ expects argument of type ‘size_t’,

New GCC plugin in 3rd party project (FRRouting): extended printf warnings

2020-07-17 Thread David Lamparter
Hi all, the GCC wiki[1] suggests sending an e-mail when having developed a plugin, so here we are! I have, for the FRRouting project (a set of daemons implementing the various internet routing protocols, GPLv2+), implemented a plugin that does customized checking of extended printf formats. The