summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-26 12:31:45 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-26 12:31:45 -0400
commit7cae98b292558928b7350e31f45d693fe36d7d08 (patch)
treec8cc1ed74e74498802450eedcbcd106278415c59
parent97722e560ecaf87125aff5a56e247b7952ef8105 (diff)
lib: fix clippy build w/ gcc under certain configs
GCC's linker driver sometimes gets confused when building clippy. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--lib/command_graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index 4555d6eaeb..0e8669c4b5 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -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;