plugins: Replace OBS_UNUSED with UNUSED_PARAMETER
OBS_UNUSED is not portable to MSVC.
This commit is contained in:
parent
12657e4fcc
commit
8409f72f60
@ -331,10 +331,13 @@ static obs_missing_files_t *image_source_missingfiles(void *data)
|
||||
return files;
|
||||
}
|
||||
|
||||
static enum gs_color_space image_source_get_color_space(
|
||||
void *data, size_t count OBS_UNUSED,
|
||||
const enum gs_color_space *preferred_spaces OBS_UNUSED)
|
||||
static enum gs_color_space
|
||||
image_source_get_color_space(void *data, size_t count,
|
||||
const enum gs_color_space *preferred_spaces)
|
||||
{
|
||||
UNUSED_PARAMETER(count);
|
||||
UNUSED_PARAMETER(preferred_spaces);
|
||||
|
||||
struct image_source *const s = data;
|
||||
gs_image_file4_t *const if4 = &s->if4;
|
||||
return if4->image3.image2.image.texture ? if4->space : GS_CS_SRGB;
|
||||
|
@ -382,9 +382,11 @@ static enum gs_color_format gs_format_from_tex()
|
||||
}
|
||||
}
|
||||
|
||||
static int silence_x11_errors(Display *display OBS_UNUSED,
|
||||
XErrorEvent *err OBS_UNUSED)
|
||||
static int silence_x11_errors(Display *display, XErrorEvent *err)
|
||||
{
|
||||
UNUSED_PARAMETER(display);
|
||||
UNUSED_PARAMETER(err);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user