src/uhttpd.c: fix build without dlopen

Build without dlopen fails on:

/data/buildroot-test/instance-0/output-1/build/libuhttpd-3.4.0/src/uhttpd.c:45:23: error: unused variable 'p' [-Werror=unused-variable]
     struct uh_plugin *p = srv->plugins;
                       ^

Fixes:
 - http://autobuild.buildroot.org/results/b2bbd0681705b94e6b531996b39f62e47f089c92

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
main
Fabrice Fontaine 2020-10-16 21:39:47 +02:00
parent 1e44f7fa34
commit 0b2058e7c9
1 changed files with 2 additions and 0 deletions

View File

@ -42,7 +42,9 @@ void conn_free(struct uh_connection *conn);
static void uh_server_free(struct uh_server *srv) static void uh_server_free(struct uh_server *srv)
{ {
struct uh_connection *conn = srv->conns; struct uh_connection *conn = srv->conns;
#ifdef HAVE_DLOPEN
struct uh_plugin *p = srv->plugins; struct uh_plugin *p = srv->plugins;
#endif
ev_io_stop(srv->loop, &srv->ior); ev_io_stop(srv->loop, &srv->ior);