From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 27 Dec 2021 12:33:14 +0000 (+0000) Subject: Add some conditional compilation statements to avoid a few warnings. X-Git-Tag: 4.1-rc1~24^2~315^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42e508b449d2708a513301dc385ae16d59b9a190;p=thirdparty%2Fshairport-sync.git Add some conditional compilation statements to avoid a few warnings. --- diff --git a/rtsp.c b/rtsp.c index 408d6132..f6930dd6 100644 --- a/rtsp.c +++ b/rtsp.c @@ -2614,6 +2614,8 @@ void handle_flush(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) { #ifdef CONFIG_AIRPLAY_2 + +#ifdef CONFIG_METADATA static void check_and_send_plist_metadata(plist_t messagePlist, const char *plist_key, uint32_t metadata_code) { plist_t item = plist_dict_get_item(messagePlist, plist_key); @@ -2625,6 +2627,7 @@ static void check_and_send_plist_metadata(plist_t messagePlist, const char *plis } } } +#endif void handle_setup_2(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) { int err;