]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Make frr able to be built by gcc 10
authorTomas Korbar <tkorbar@redhat.com>
Thu, 20 Feb 2020 06:37:55 +0000 (07:37 +0100)
committerDavid Lamparter <equinox@diac24.net>
Thu, 23 Apr 2020 17:13:46 +0000 (19:13 +0200)
commitff343e58810c0a1dcecb1c310028bbf802e1fc86
tree4c39ed1cb3183f3698da9d8589022199176b825a
parent9a3cf1ba247da84ad7f3a90f29d7c5dce288d8bc
pimd: Make frr able to be built by gcc 10

- Add extern modifier to some declarations in header file and move
qpim_all_pim_routers_addr definition to pimd/pimd.c

`GCC now defaults to -fno-common. As a result, global variable accesses
are more efficient on various targets. In C, global variables with
multiple tentative definitions now result in linker errors.`
Taken from https://gcc.gnu.org/gcc-10/changes.html

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
(cherry picked from commit 403242d214b6cb919ed08f2149d7bee77a060947)
pimd/pimd.c
pimd/pimd.h