]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: remove gcc 4.x workaround for nb structure
authorChirag Shah <chirag@cumulusnetworks.com>
Fri, 27 Mar 2020 02:00:52 +0000 (19:00 -0700)
committerSantosh P K <sapk@vmware.com>
Thu, 16 Apr 2020 15:48:57 +0000 (08:48 -0700)
Remove gcc 4.x workaround for variable size array as gcc
check moved to header file.

In lib/northbound.h : struct frr_yang_module_info made
size 1000 for gcc 4.x, where maximum 1000 nodes can fit.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
lib/if.c

index f557d7a1dd6d3cd20d86136402b293a09d09846a..c887bb6265e75d4003979cbdf044fa4f33219144 100644 (file)
--- a/lib/if.c
+++ b/lib/if.c
@@ -1758,7 +1758,6 @@ lib_interface_state_phy_address_get_elem(const char *xpath,
 }
 
 /* clang-format off */
-
 const struct frr_yang_module_info frr_interface_info = {
        .name = "frr-interface",
        .nodes = {