[shotwell] Silence a couple of more warnings



commit cdd0e4fbd0ac86088e6b4f40bc34247b8dd8bd23
Author: Jens Georg <mail jensge org>
Date:   Sun Mar 14 12:30:44 2021 +0100

    Silence a couple of more warnings

 src/camera/GPhoto.vala                  | 1 -
 src/camera/ImportPage.vala              | 1 -
 src/config/ConfigurationInterfaces.vala | 3 +++
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/camera/GPhoto.vala b/src/camera/GPhoto.vala
index 64ff7ca0..df96bf56 100644
--- a/src/camera/GPhoto.vala
+++ b/src/camera/GPhoto.vala
@@ -137,7 +137,6 @@ namespace GPhoto {
     public PhotoMetadata? get_fallback_metadata(Camera camera, Context context, string folder, string 
filename) {
         // Fixme: Why do we need to query get_storageinfo here first?
         GPhoto.CameraStorageInformation[] sifs = null;
-        int count = 0;
         camera.get_storageinfo(out sifs, context);
         
         GPhoto.PortInfo port_info;
diff --git a/src/camera/ImportPage.vala b/src/camera/ImportPage.vala
index 7dbe9d42..63839ad7 100644
--- a/src/camera/ImportPage.vala
+++ b/src/camera/ImportPage.vala
@@ -1180,7 +1180,6 @@ public class ImportPage : CheckerboardPage {
         Gee.ArrayList<ImportSource> import_list = new Gee.ArrayList<ImportSource>();
         
         GPhoto.CameraStorageInformation[] sifs = null;
-        int count = 0;
         refresh_result = dcamera.gcamera.get_storageinfo(out sifs, spin_idle_context.context);
         if (refresh_result == GPhoto.Result.OK) {
             for (int fsid = 0; fsid < count; fsid++) {
diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala
index 195a28f7..a2c9ecfa 100644
--- a/src/config/ConfigurationInterfaces.vala
+++ b/src/config/ConfigurationInterfaces.vala
@@ -408,6 +408,9 @@ public abstract class ConfigurationFacade : Object {
             case ConfigurableProperty.IMPORT_DIR:
                 import_directory_changed();
             break;
+            default:
+                // We do not support notification for the rest of the properties
+            break;
         }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]