]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: work around GCC/plugin shortcomings
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 8 Jul 2022 11:59:10 +0000 (13:59 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 8 Jul 2022 12:08:03 +0000 (14:08 +0200)
commit37e7007373b8dac7e4a31027cf0bff39ae2a67e4
tree7b79f4a8e8fbd666f2df8a170c86fdc2a3462a4f
parentbc0e6b1993524222ab2eb6cfea81e948600e1e2a
bgpd: work around GCC/plugin shortcomings

The GCC extended printf format checking plugin runs into some GCC
shortcomings regarding casts on printf function parameters.  While this
can be fixed with a small GCC patch, patching GCC is "nontrivial" to say
the least.  Luckily, it happens that this is /almost/ not an issue for
the FRR source base.

Since we fix SA "misunderstandings" too, let's just fix places where the
format checking plugin runs into this limitation to keep things working
extra smoothly.

(It's not a huge effort either, these two spots in bgpd are the only
places that trigger the plugin limitation, and it's been "clean" before
that for more than a year if my memory is right.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_updgrp.c