projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sha1: Avoid unused variable warnings on big-endian systems.
[openvswitch]
/
lib
/
vlog.h
diff --git
a/lib/vlog.h
b/lib/vlog.h
index 12844c6f7f1715bd26d848be352b6ea2442f2e68..3f40c297dbbe736197a9841e1316777d9a7ff841 100644
(file)
--- a/
lib/vlog.h
+++ b/
lib/vlog.h
@@
-92,6
+92,7
@@
struct vlog_module {
#if USE_LINKER_SECTIONS
#define VLOG_DEFINE_MODULE(MODULE) \
VLOG_DEFINE_MODULE__(MODULE) \
#if USE_LINKER_SECTIONS
#define VLOG_DEFINE_MODULE(MODULE) \
VLOG_DEFINE_MODULE__(MODULE) \
+ extern struct vlog_module *vlog_module_ptr_##MODULE; \
struct vlog_module *vlog_module_ptr_##MODULE \
__attribute__((section("vlog_modules"))) = &VLM_##MODULE
#else
struct vlog_module *vlog_module_ptr_##MODULE \
__attribute__((section("vlog_modules"))) = &VLM_##MODULE
#else
@@
-258,6
+259,7
@@
void vlog_usage(void);
} while (0)
#define VLOG_DEFINE_MODULE__(MODULE) \
} while (0)
#define VLOG_DEFINE_MODULE__(MODULE) \
+ extern struct vlog_module VLM_##MODULE; \
struct vlog_module VLM_##MODULE = \
{ \
#MODULE, /* name */ \
struct vlog_module VLM_##MODULE = \
{ \
#MODULE, /* name */ \