[ovs-dev] [PATCH 3/3] route-table-bsd: Remove unused vlog definition

YAMAMOTO Takashi yamamoto at valinux.co.jp
Fri May 2 23:12:03 UTC 2014


Complained by clang 3.4.

lib/route-table-bsd.c:35:1: error: unused variable 'THIS_MODULE'
      [-Werror,-Wunused-const-variable]
VLOG_DEFINE_THIS_MODULE(route_table);
^
./lib/vlog.h:176:42: note: expanded from macro 'VLOG_DEFINE_THIS_MODULE'
        static struct vlog_module *const THIS_MODULE = &VLM_##MODULE

Signed-off-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
---
 lib/route-table-bsd.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/route-table-bsd.c b/lib/route-table-bsd.c
index d02c76f..f14fea0 100644
--- a/lib/route-table-bsd.c
+++ b/lib/route-table-bsd.c
@@ -30,9 +30,6 @@
 #include <unistd.h>
 
 #include "util.h"
-#include "vlog.h"
-
-VLOG_DEFINE_THIS_MODULE(route_table);
 
 static int pid;
 static unsigned int register_count = 0;
-- 
1.8.3.1




More information about the dev mailing list