[nautilus/wip/ernestask/leak-plugging: 5/9] meson.build: Enable -Werror=incompatible-pointer-types



commit 6cca99df73c29ccfcb6fd36fcfe5281f7b4c82f2
Author: Ernestas Kulik <ernestask gnome org>
Date:   Sat Oct 6 19:19:28 2018 +0300

    meson.build: Enable -Werror=incompatible-pointer-types

 meson.build                | 1 +
 src/nautilus-window-slot.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index b7baa5555..0d92018ab 100644
--- a/meson.build
+++ b/meson.build
@@ -44,6 +44,7 @@ add_project_arguments(
     '-Werror=empty-body',
     '-Werror=format=2',
     '-Werror=implicit-function-declaration',
+    '-Werror=incompatible-pointer-types',
     '-Werror=init-self',
     '-Werror=missing-include-dirs',
     '-Werror=missing-prototypes',
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 56b63895b..f221d0c8e 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -448,7 +448,7 @@ query_editor_focus_view_callback (NautilusQueryEditor *editor,
     priv = nautilus_window_slot_get_instance_private (self);
     if (priv->content_view != NULL)
     {
-        gtk_widget_grab_focus (priv->content_view);
+        gtk_widget_grab_focus (GTK_WIDGET (priv->content_view));
     }
 }
 


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