Skip to content

Commit 614fb6a

Browse files
jeieaRytoEX
authored andcommitted
nv-filters: Fix warnings with Visual Studio 2022 17.14
Following error occurs with Visual Studio 2022 v17.14 Preview 4.0 and Windows 11 SDK 10.0.26100.0 nvidia-videofx-filter.c(133,9): error C2220: the following warning is treated as an error nvidia-videofx-filter.c(133,9): warning C5287: operands are different enum types 'nvvfx_fx_id' and 'nvvfx_filter_id'; use an explicit cast to silence this warning The warning is reasonable, so change mismatched enum type. (cherry picked from commit a1c6bae)
1 parent 6811012 commit 614fb6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/nv-filters/nvidia-videofx-filter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#define S_STRENGTH_DEFAULT 0.5
4242
#define TEXT_MODE_BLUR_STRENGTH MT_("Nvvfx.Method.Blur.Strength")
4343

44-
enum nvvfx_filter_id { S_FX_AIGS, S_FX_BLUR, S_FX_BG_BLUR };
44+
enum nvvfx_fx_id { S_FX_AIGS, S_FX_BLUR, S_FX_BG_BLUR };
4545

4646
bool nvvfx_loaded = false;
4747
bool nvvfx_new_sdk = false;
@@ -91,7 +91,7 @@ struct nvvfx_data {
9191
int processing_counter;
9292

9393
/* blur specific */
94-
enum nvvfx_filter_id filter_id;
94+
enum nvvfx_fx_id filter_id;
9595
NvVFX_Handle handle_blur;
9696
CUstream stream_blur; // cuda stream
9797
float strength; // from 0 to 1, default = 0.5

0 commit comments

Comments
 (0)