Ver código fonte

test: Fix unused-parameter warnings in test-input

Norihiro Kamae 2 anos atrás
pai
commit
af01bea6a0
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      test/test-input/sync-pair-vid.c

+ 3 - 0
test/test-input/sync-pair-vid.c

@@ -46,6 +46,7 @@ static inline void fill_texture(uint32_t *pixels, uint32_t pixel)
 
 static void *sync_pair_vid_create(obs_data_t *settings, obs_source_t *source)
 {
+	UNUSED_PARAMETER(settings);
 	struct sync_pair_vid *spv = bzalloc(sizeof(struct sync_pair_vid));
 	spv->source = source;
 
@@ -83,6 +84,7 @@ static inline bool whitelist_time(uint64_t ts, uint64_t interval,
 
 static void sync_pair_vid_render(void *data, gs_effect_t *effect)
 {
+	UNUSED_PARAMETER(effect);
 	struct sync_pair_vid *spv = data;
 
 	uint64_t ts = obs_get_video_frame_time();
@@ -116,6 +118,7 @@ static void sync_pair_vid_render(void *data, gs_effect_t *effect)
 
 static uint32_t sync_pair_vid_size(void *data)
 {
+	UNUSED_PARAMETER(data);
 	return 32;
 }