]> git.puffer.fish Git - mirror/frr.git/commit
tools/gcc-plugins: warn for `suseconds_t` format 15888/head 15915/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 30 Apr 2024 12:13:22 +0000 (14:13 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 2 May 2024 20:26:53 +0000 (22:26 +0200)
commitda3677e7199e1911e55a70ab37b2a2ebac2db6a9
treeddbb09727efc331d38fa5d93ef59ddc8636a4434
parent552a0a3a284194dc4f9dac3d72259e9d622813e1
tools/gcc-plugins: warn for `suseconds_t` format

The plugin was already catching attempts to print `time_t` without
casting it first (there is no valid printf specifier without a cast),
but `__suseconds64_t` needs the same treatment.  (Probably
`__suseconds_t` too, if it exists, which I'm not sure it does - but that
doesn't matter, the plugin ignores non-existing types.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tools/gcc-plugins/frr-format.c