From 7cae98b292558928b7350e31f45d693fe36d7d08 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 26 Apr 2018 12:31:45 -0400 Subject: [PATCH] lib: fix clippy build w/ gcc under certain configs GCC's linker driver sometimes gets confused when building clippy. Signed-off-by: Quentin Young --- lib/command_graph.c | 5 +++-- 1 file 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 #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;