Skip to content
  • Marco Trevisan's avatar
    device: Mark fingers names array as const and use unique name · 7d8450e5
    Marco Trevisan authored and Bastien Nocera's avatar Bastien Nocera committed
    With the stronger warnings enabled when building with meson, we get a
    warning for all the fingers definitions:
    
      ../src/device.c:38:24: warning: initialization discards ‘const’ qualifier
      from pointer target type [-Wdiscarded-qualifiers]
        38 |  [FP_FINGER_UNKNOWN] = "unknown",
    
    As the `fingers` array name was shadowed in another file:
    
      ../src/device.c:1000:11: warning: declaration of ‘fingers’ shadows a
      global declaration [-Wshadow]
        1000 |   GSList *fingers, *finger;
    7d8450e5