]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix warnings in ifdef corner case, older or unknown libevent.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 14 Mar 2016 11:30:44 +0000 (11:30 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 14 Mar 2016 11:30:44 +0000 (11:30 +0000)
git-svn-id: file:///svn/unbound/trunk@3671 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/ub_event.c

index 8f8ba072444d686d878593294f4be31e978e961a..2118b81ad222963a2512cc2aa2c15ea2c023a2ef 100644 (file)
@@ -1,3 +1,6 @@
+14 March 2016: Wouter
+       - Fix warnings in ifdef corner case, older or unknown libevent.
+
 11 March 2016: Wouter
        - Remove warning about unused parameter in event_pluggable.c.
        - Fix libev usage of dispatch return value.
index b4d6ccf69a4b6a37136a423d14d952f917b7e150..5ddeefb84714bc34214ec9b37953a16892ca0221 100644 (file)
@@ -187,6 +187,7 @@ ub_get_event_sys(struct ub_event_base* base, const char** n, const char** s,
 #  else
        *n = "unknown";
        *m = "not obtainable";
+       (void)b;
 #  endif
 #  ifdef HAVE_EVENT_BASE_FREE
        if (b && b != AS_EVENT_BASE(base))
@@ -258,6 +259,8 @@ ub_event_base_free(struct ub_event_base* base)
           assertion fails on signal handling ev that is not deleted
           in libevent 1.3c (event_base_once appears) this is fixed. */
        event_base_free(AS_EVENT_BASE(base));
+#else
+       (void)base;
 #endif /* HAVE_EVENT_BASE_FREE and HAVE_EVENT_BASE_ONCE */
 }