From 41c5ef1474e5691f94adba61fe4868b3c793e86b Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 28 Jan 2017 00:45:44 +0100 Subject: [PATCH] [compat] Suppress warnings about unused functions --- src/ffmpeg-compat.h | 4 ++-- src/mxml-compat.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ffmpeg-compat.h b/src/ffmpeg-compat.h index e262f39a..3df85ca0 100644 --- a/src/ffmpeg-compat.h +++ b/src/ffmpeg-compat.h @@ -31,7 +31,7 @@ #endif #ifndef HAVE_AV_PACKET_RESCALE_TS -static void +__attribute__((unused)) static void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb) { if (pkt->pts != AV_NOPTS_VALUE) @@ -48,7 +48,7 @@ av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb) #ifndef HAVE_AVFORMAT_ALLOC_OUTPUT_CONTEXT2 # include -static int +__attribute__((unused)) static int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat, const char *format, const char *filename) { AVFormatContext *s = avformat_alloc_context(); diff --git a/src/mxml-compat.h b/src/mxml-compat.h index e9e4e9e9..1437ad89 100644 --- a/src/mxml-compat.h +++ b/src/mxml-compat.h @@ -3,7 +3,7 @@ /* For compability with mxml 2.6 */ #ifndef HAVE_MXMLGETTEXT -static const char * /* O - Text string or NULL */ +__attribute__((unused)) static const char * /* O - Text string or NULL */ mxmlGetText(mxml_node_t *node, /* I - Node to get */ int *whitespace) /* O - 1 if string is preceded by whitespace, 0 otherwise */ { @@ -19,7 +19,7 @@ mxmlGetText(mxml_node_t *node, /* I - Node to get */ #endif #ifndef HAVE_MXMLGETOPAQUE -const char * /* O - Opaque string or NULL */ +__attribute__((unused)) static const char * /* O - Opaque string or NULL */ mxmlGetOpaque(mxml_node_t *node) /* I - Node to get */ { if (!node) @@ -37,7 +37,7 @@ mxmlGetOpaque(mxml_node_t *node) /* I - Node to get */ #endif #ifndef HAVE_MXMLGETFIRSTCHILD -static mxml_node_t * /* O - First child or NULL */ +__attribute__((unused)) static mxml_node_t * /* O - First child or NULL */ mxmlGetFirstChild(mxml_node_t *node) /* I - Node to get */ { if (!node || node->type != MXML_ELEMENT) @@ -48,7 +48,7 @@ mxmlGetFirstChild(mxml_node_t *node) /* I - Node to get */ #endif #ifndef HAVE_MXMLGETTYPE -static mxml_type_t /* O - Type of node */ +__attribute__((unused)) static mxml_type_t /* O - Type of node */ mxmlGetType(mxml_node_t *node) /* I - Node to get */ { return (node->type);