]> git.puffer.fish Git - matthieu/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:10:39 +0000 (19:10 +0200)
commit7a22c22be90849d322fee82905ad978eff14556a
treeefa37614150bac37541579d0f89e21d8735d8272
parent3340b7c6f4910cca7709d4fe741534b1c2ccebca
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