Fix all compilation warnings
This MR fixes all the compilation warnings in the vfs0090.c file while minimizing changes to the code. The main fixes include:
-
Fixed missing enum values in switch statements - Added missing
FPI_DEVICE_ACTION_*
enum cases to all switch statements that were generating-Wswitch-enum
warnings -
Fixed deprecated
g_memdup
function - Replacedg_memdup
withg_memdup2
on line 403 -
Fixed deprecated
fp_device_supports_capture
function - Replaced withfp_device_get_features()
and proper feature flag checking -
Fixed undefined
HAVE_PIXMAN
macro - Changed#if HAVE_PIXMAN
to#ifdef HAVE_PIXMAN
to properly check if the macro is defined