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>
This commit is contained in:
Quentin Young 2018-04-26 12:31:45 -04:00
parent 97722e560e
commit 7cae98b292

View 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;