]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix clippy build w/ gcc under certain configs
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 26 Apr 2018 16:31:45 +0000 (12:31 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 26 Apr 2018 16:31:45 +0000 (12:31 -0400)
GCC's linker driver sometimes gets confused when building clippy.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command_graph.c

index 4555d6eaeb16b0396cd3c1fdeffefb56f9f7f723..0e8669c4b5aed451718f7e47a7bd5eeba0b08003 100644 (file)
@@ -25,8 +25,6 @@
 #include <zebra.h>
 
 #include "command_graph.h"
-#include "command.h"
-#include "log.h"
 
 DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens")
 DEFINE_MTYPE_STATIC(LIB, CMD_DESC, "Command Token Text")
@@ -462,6 +460,9 @@ void cmd_graph_names(struct graph *graph)
 
 #ifndef BUILDING_CLIPPY
 
+#include "command.h"
+#include "log.h"
+
 void cmd_graph_node_print_cb(struct graph_node *gn, struct buffer *buf)
 {
        static bool wasend;