mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
[httpd] Silence compiler warning about unused var
This commit is contained in:
parent
d7b63ebc6a
commit
ad4cdc2216
@ -209,7 +209,7 @@ oauth_interface(struct evhttp_request *req, const char *uri)
|
||||
struct evkeyvalq query;
|
||||
const char *req_uri;
|
||||
const char *ptr;
|
||||
char redirect_uri[256];
|
||||
char __attribute__((unused)) redirect_uri[256];
|
||||
int ret;
|
||||
|
||||
req_uri = evhttp_request_get_uri(req);
|
||||
@ -246,6 +246,8 @@ oauth_interface(struct evhttp_request *req, const char *uri)
|
||||
spotify_oauth_callback(evbuf, &query, redirect_uri);
|
||||
else
|
||||
spotify_oauth_interface(evbuf, redirect_uri);
|
||||
#else
|
||||
evbuffer_add_printf(evbuf, "<p>This version was built without modules requiring OAuth support</p>\n");
|
||||
#endif
|
||||
|
||||
evbuffer_add_printf(evbuf, "<p><i>(sorry about this ugly interface)</i></p>\n");
|
||||
|
Loading…
Reference in New Issue
Block a user