mirror of https://code.videolan.org/videolan/vlc
avoid empty function parameters
This commit is contained in:
parent
352ad101b3
commit
32e310fb36
|
@ -945,7 +945,7 @@ VLC_API void vlc_ml_playback_states_all_release( vlc_ml_playback_states_all* pre
|
|||
VLC_API void vlc_ml_bookmark_release( vlc_ml_bookmark_t* p_bookmark );
|
||||
VLC_API void vlc_ml_bookmark_list_release( vlc_ml_bookmark_list_t* p_list );
|
||||
|
||||
static inline vlc_ml_query_params_t vlc_ml_query_params_create()
|
||||
static inline vlc_ml_query_params_t vlc_ml_query_params_create(void)
|
||||
{
|
||||
return (vlc_ml_query_params_t) {
|
||||
.psz_pattern = NULL,
|
||||
|
|
|
@ -73,7 +73,7 @@ typedef struct scte18_cea_t
|
|||
****************************************************************************/
|
||||
#define BUF_ADVANCE(n) p_buffer += n; i_buffer -= n;
|
||||
|
||||
static inline scte18_cea_t * scte18_cea_New()
|
||||
static inline scte18_cea_t * scte18_cea_New(void)
|
||||
{
|
||||
return calloc( 1, sizeof(scte18_cea_t) );
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ static cct_number_t cct_nums[] = { {CCT_ISO_6937_2, "ISO_6937-2"},
|
|||
{CCT_ISO_8859_7, "ISO_8859-7"},
|
||||
{CCT_ISO_8859_8, "ISO_8859-8"} };
|
||||
|
||||
static text_style_t * CreateGroupStyle()
|
||||
static text_style_t * CreateGroupStyle(void)
|
||||
{
|
||||
text_style_t *p_style = text_style_Create(STYLE_NO_DEFAULTS);
|
||||
if(p_style)
|
||||
|
|
|
@ -79,7 +79,7 @@ static inline void SubpictureUpdaterSysRegionInit(substext_updater_region_t *p_u
|
|||
p_updtregion->inner_align = 0;
|
||||
}
|
||||
|
||||
static inline substext_updater_region_t *SubpictureUpdaterSysRegionNew( )
|
||||
static inline substext_updater_region_t *SubpictureUpdaterSysRegionNew( void )
|
||||
{
|
||||
substext_updater_region_t *p_region = malloc(sizeof(*p_region));
|
||||
if(p_region)
|
||||
|
|
|
@ -131,7 +131,7 @@ static void ttml_style_Delete( ttml_style_t* p_ttml_style )
|
|||
free( p_ttml_style );
|
||||
}
|
||||
|
||||
static ttml_style_t * ttml_style_New( )
|
||||
static ttml_style_t * ttml_style_New( void )
|
||||
{
|
||||
ttml_style_t *p_ttml_style = calloc( 1, sizeof( ttml_style_t ) );
|
||||
if( unlikely( !p_ttml_style ) )
|
||||
|
|
|
@ -338,7 +338,7 @@ static bool parse_track_dict( stream_t *p_demux, input_item_node_t *p_input_node
|
|||
return i_ret;
|
||||
}
|
||||
|
||||
static track_elem_t *new_track()
|
||||
static track_elem_t *new_track(void)
|
||||
{
|
||||
track_elem_t *p_track = malloc( sizeof *p_track );
|
||||
if( likely( p_track ) )
|
||||
|
|
|
@ -491,7 +491,7 @@ static uint8_t* parse_afrt( vlc_object_t* p_this,
|
|||
return data_p;
|
||||
}
|
||||
|
||||
static inline chunk_t* chunk_new()
|
||||
static inline chunk_t* chunk_new(void)
|
||||
{
|
||||
chunk_t* chunk = calloc(1, sizeof(chunk_t));
|
||||
return chunk;
|
||||
|
|
|
@ -66,7 +66,7 @@ struct es_data
|
|||
pcr_event_t *last_pcr_event;
|
||||
};
|
||||
|
||||
static inline struct es_data es_data_Init()
|
||||
static inline struct es_data es_data_Init(void)
|
||||
{
|
||||
return (struct es_data){.is_deleted = false,
|
||||
.last_input_dts = VLC_TICK_INVALID,
|
||||
|
|
|
@ -82,7 +82,7 @@ static char *AuthGetParamNoQuotesConcat( const char *psz_header, const char *psz
|
|||
}
|
||||
}
|
||||
|
||||
static char *GenerateCnonce()
|
||||
static char *GenerateCnonce(void)
|
||||
{
|
||||
char ps_random[32];
|
||||
char *md5_hex;
|
||||
|
|
Loading…
Reference in New Issue