]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Remove warning about unused parameter in event_pluggable.c.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Mar 2016 08:09:18 +0000 (08:09 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Mar 2016 08:09:18 +0000 (08:09 +0000)
git-svn-id: file:///svn/unbound/trunk@3663 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/ub_event_pluggable.c

index 0ec1ea8f83d7623b216f9f89c46b391a47b07091..5af56f680eaf6c5a93bb83fdd7a8c4ebb9ff6fdb 100644 (file)
@@ -1,3 +1,6 @@
+11 March 2016: Wouter
+       - Remove warning about unused parameter in event_pluggable.c.
+
 10 March 2016: Wouter
        - Fixup backend2str for libev.
 
index 61695d83ee6f988245789a9a325eaa725b377df1..c3d87b08968cd31e59ea3251dccccc910277f99d 100644 (file)
@@ -341,6 +341,7 @@ struct ub_event_base*
 ub_libevent_event_base(struct event_base* base)
 {
 #ifdef USE_MINI_EVENT
+       (void)base;
        return NULL;
 #else
        struct my_event_base* my_base = (struct my_event_base*)calloc(1,
@@ -360,6 +361,8 @@ ub_libevent_get_event_base(struct ub_event_base* base)
 #ifndef USE_MINI_EVENT
        if (base->vmt == &default_event_base_vmt)
                return AS_MY_EVENT_BASE(base)->base;
+#else
+       (void)base;
 #endif
        return NULL;
 }