mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[compat] Suppress warnings about unused functions
This commit is contained in:
parent
b6f969d96e
commit
41c5ef1474
@ -31,7 +31,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_AV_PACKET_RESCALE_TS
|
#ifndef HAVE_AV_PACKET_RESCALE_TS
|
||||||
static void
|
__attribute__((unused)) static void
|
||||||
av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb)
|
av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb)
|
||||||
{
|
{
|
||||||
if (pkt->pts != AV_NOPTS_VALUE)
|
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
|
#ifndef HAVE_AVFORMAT_ALLOC_OUTPUT_CONTEXT2
|
||||||
# include <libavutil/opt.h>
|
# include <libavutil/opt.h>
|
||||||
|
|
||||||
static int
|
__attribute__((unused)) static int
|
||||||
avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat, const char *format, const char *filename)
|
avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat, const char *format, const char *filename)
|
||||||
{
|
{
|
||||||
AVFormatContext *s = avformat_alloc_context();
|
AVFormatContext *s = avformat_alloc_context();
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
/* For compability with mxml 2.6 */
|
/* For compability with mxml 2.6 */
|
||||||
#ifndef HAVE_MXMLGETTEXT
|
#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 */
|
mxmlGetText(mxml_node_t *node, /* I - Node to get */
|
||||||
int *whitespace) /* O - 1 if string is preceded by whitespace, 0 otherwise */
|
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
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_MXMLGETOPAQUE
|
#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 */
|
mxmlGetOpaque(mxml_node_t *node) /* I - Node to get */
|
||||||
{
|
{
|
||||||
if (!node)
|
if (!node)
|
||||||
@ -37,7 +37,7 @@ mxmlGetOpaque(mxml_node_t *node) /* I - Node to get */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_MXMLGETFIRSTCHILD
|
#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 */
|
mxmlGetFirstChild(mxml_node_t *node) /* I - Node to get */
|
||||||
{
|
{
|
||||||
if (!node || node->type != MXML_ELEMENT)
|
if (!node || node->type != MXML_ELEMENT)
|
||||||
@ -48,7 +48,7 @@ mxmlGetFirstChild(mxml_node_t *node) /* I - Node to get */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_MXMLGETTYPE
|
#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 */
|
mxmlGetType(mxml_node_t *node) /* I - Node to get */
|
||||||
{
|
{
|
||||||
return (node->type);
|
return (node->type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user