diff options
author | Rahul Verma <rv404674@gmail.com> | 2018-01-12 14:25:24 +0530 |
---|---|---|
committer | Rahul Verma <rv404674@gmail.com> | 2018-01-14 03:09:17 +0530 |
commit | e01a8497e2c68fd078f1c85acbedfd2fb5b1fbd4 (patch) | |
tree | b849d78a97841aa48ce1bafa9dc5311ab75044e7 /src/nautilus-progress-info-manager.c | |
parent | f4d493060c5238a8d66acba1963b9a5a395c64c7 (diff) | |
download | nautilus-e01a8497e2c68fd078f1c85acbedfd2fb5b1fbd4.tar.gz |
general: Fix-Wincompatible-pointer-types warnings
We were having an issue where we were not casting objects properly.
https://blogs.gnome.org/chergert/2018/01/05/g_object_ref-and-wincompatible-pointer-types/
The solution is to type cast explicitly to the correct type.
close #192
Diffstat (limited to 'src/nautilus-progress-info-manager.c')
-rw-r--r-- | src/nautilus-progress-info-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-progress-info-manager.c b/src/nautilus-progress-info-manager.c index 57950a136..00868593a 100644 --- a/src/nautilus-progress-info-manager.c +++ b/src/nautilus-progress-info-manager.c @@ -78,7 +78,7 @@ nautilus_progress_info_manager_constructor (GType type, if (singleton != NULL) { - return g_object_ref (singleton); + return G_OBJECT (g_object_ref (singleton)); } retval = G_OBJECT_CLASS (nautilus_progress_info_manager_parent_class)->constructor |