mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vaapi: Fix various compiler warnings and disable -Wredundant-decls for now
This commit is contained in:
parent
7bd9b2aa5c
commit
734b8bad8f
8 changed files with 12 additions and 11 deletions
|
@ -837,7 +837,8 @@ dnl make sure it doesn't complain about unused variables if debugging is disable
|
|||
AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [NO_WARNINGS=""])
|
||||
|
||||
dnl define an ERROR_CFLAGS Makefile variable
|
||||
AG_GST_SET_ERROR_CFLAGS([$FATAL_WARNINGS], [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs $NO_WARNINGS])
|
||||
dnl FIXME Add -Wredundant-decls again if considered useful and warnings are fixed
|
||||
AG_GST_SET_ERROR_CFLAGS([$FATAL_WARNINGS], [-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs $NO_WARNINGS])
|
||||
|
||||
dnl define correct level for debugging messages
|
||||
AG_GST_SET_LEVEL_DEFAULT([$GST_GIT])
|
||||
|
|
|
@ -365,7 +365,7 @@ copy_quant_matrix (guint8 dst[64], const guint8 src[64])
|
|||
static const char *
|
||||
get_profile_str (GstVaapiProfile profile)
|
||||
{
|
||||
char *str;
|
||||
const char *str;
|
||||
|
||||
switch (profile) {
|
||||
case GST_VAAPI_PROFILE_MPEG2_SIMPLE:
|
||||
|
|
|
@ -456,7 +456,7 @@ decode_gop (GstVaapiDecoderMpeg4 * decoder, const guint8 * buf, guint buf_size)
|
|||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
calculate_pts_diff (GstVaapiDecoderMpeg4 * decoder,
|
||||
GstMpeg4VideoObjectLayer * vol_hdr, GstMpeg4VideoObjectPlane * vop_hdr)
|
||||
{
|
||||
|
|
|
@ -572,7 +572,7 @@ decode_buffer (GstVaapiDecoderVp8 * decoder, const guchar * buf, guint buf_size)
|
|||
return decode_picture (decoder, buf, buf_size);
|
||||
}
|
||||
|
||||
GstVaapiDecoderStatus
|
||||
static GstVaapiDecoderStatus
|
||||
gst_vaapi_decoder_vp8_decode (GstVaapiDecoder * base_decoder,
|
||||
GstVaapiDecoderUnit * unit)
|
||||
{
|
||||
|
|
|
@ -647,7 +647,7 @@ decode_buffer (GstVaapiDecoderVp9 * decoder, const guchar * buf, guint buf_size)
|
|||
return decode_picture (decoder, buf, size);
|
||||
}
|
||||
|
||||
GstVaapiDecoderStatus
|
||||
static GstVaapiDecoderStatus
|
||||
gst_vaapi_decoder_vp9_decode (GstVaapiDecoder * base_decoder,
|
||||
GstVaapiDecoderUnit * unit)
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@ struct _GstVaapiFilter
|
|||
/* --- VPP Types --- */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
GType
|
||||
static GType
|
||||
gst_vaapi_scale_method_get_type (void)
|
||||
{
|
||||
static gsize g_type = 0;
|
||||
|
@ -725,7 +725,7 @@ ensure_operations (GstVaapiFilter * filter)
|
|||
}
|
||||
|
||||
/* Find whether the VPP operation is supported or not */
|
||||
GstVaapiFilterOpData *
|
||||
static GstVaapiFilterOpData *
|
||||
find_operation (GstVaapiFilter * filter, GstVaapiFilterOp op)
|
||||
{
|
||||
guint i;
|
||||
|
@ -905,7 +905,7 @@ op_set_deinterlace (GstVaapiFilter * filter, GstVaapiFilterOpData * op_data,
|
|||
|
||||
/* Update skin tone enhancement */
|
||||
#if USE_VA_VPP
|
||||
gboolean
|
||||
static gboolean
|
||||
op_set_skintone_unlocked (GstVaapiFilter * filter,
|
||||
GstVaapiFilterOpData * op_data, gboolean value)
|
||||
{
|
||||
|
|
|
@ -461,7 +461,7 @@ gst_vaapi_decode_bin_class_init (GstVaapiDecodeBinClass * klass)
|
|||
static gboolean
|
||||
gst_vaapi_decode_bin_configure (GstVaapiDecodeBin * vaapidecbin)
|
||||
{
|
||||
gchar *missing_factory = NULL;
|
||||
const gchar *missing_factory = NULL;
|
||||
GstPad *pad, *ghostpad;
|
||||
GstPadTemplate *tmpl;
|
||||
|
||||
|
|
|
@ -358,7 +358,7 @@ gst_vaapi_value_set_format_list (GValue * value, GArray * formats)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
set_video_template_caps (GstCaps * caps)
|
||||
{
|
||||
GstStructure *const structure = gst_caps_get_structure (caps, 0);
|
||||
|
@ -662,7 +662,7 @@ gst_video_info_change_format (GstVideoInfo * vip, GstVideoFormat format,
|
|||
* gst_vaapi_display_unref () after use.
|
||||
**/
|
||||
GstVaapiDisplay *
|
||||
gst_vaapi_create_test_display ()
|
||||
gst_vaapi_create_test_display (void)
|
||||
{
|
||||
return gst_vaapi_create_display (GST_VAAPI_DISPLAY_TYPE_ANY, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue