[nautilus] Fix some GCC warnings



commit d4a8061c5d88a92deea63821945d84c9bd9566fd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Nov 14 10:57:26 2015 -0800

    Fix some GCC warnings

 libnautilus-private/nautilus-directory-async.c |    2 +-
 src/nautilus-files-view.c                      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c
index 58b6d02..5181f48 100644
--- a/libnautilus-private/nautilus-directory-async.c
+++ b/libnautilus-private/nautilus-directory-async.c
@@ -3951,7 +3951,7 @@ got_filesystem_info (FilesystemInfoState *state, GFileInfo *info)
 {
        NautilusDirectory *directory;
        NautilusFile *file;
-        char *filesystem_type;
+        const char *filesystem_type;
 
        /* careful here, info may be NULL */
 
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 2eaf4e9..683bd51 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -4651,7 +4651,7 @@ add_script_to_scripts_menus (NautilusFilesView *view,
 
         g_menu_append_item (menu, menu_item);
 
-       if (shortcut = g_hash_table_lookup (script_accels, name)) {
+       if ((shortcut = g_hash_table_lookup (script_accels, name))) {
                nautilus_application_add_accelerator (g_application_get_default(),
                                                      detailed_action_name, shortcut);
        }


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