[httpd/jsonapi] Fix unused variables when compiling without (#421)

--enable-spotify
This commit is contained in:
chme
2017-09-16 12:37:32 +02:00
committed by ejurgensen
parent ab6f599973
commit 6c45b808c0
2 changed files with 6 additions and 6 deletions

View File

@@ -212,14 +212,14 @@ scrobble_cb(void *arg)
static void
oauth_interface(struct evhttp_request *req, const char *uri)
{
#ifdef HAVE_SPOTIFY_H
struct evkeyvalq query;
const char *req_uri;
const char *ptr;
char __attribute__((unused)) redirect_uri[256];
char redirect_uri[256];
char *errmsg;
int ret;
#ifdef HAVE_SPOTIFY_H
req_uri = evhttp_request_get_uri(req);
memset(&query, 0, sizeof(struct evkeyvalq));