Skip to content

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:

  1. Fixed missing enum values in switch statements - Added missing FPI_DEVICE_ACTION_* enum cases to all switch statements that were generating -Wswitch-enum warnings
  2. Fixed deprecated g_memdup function - Replaced g_memdup with g_memdup2 on line 403
  3. Fixed deprecated fp_device_supports_capture function - Replaced with fp_device_get_features() and proper feature flag checking
  4. Fixed undefined HAVE_PIXMAN macro - Changed #if HAVE_PIXMAN to #ifdef HAVE_PIXMAN to properly check if the macro is defined

Merge request reports

Loading