[gtk/wip/otte/dnd: 17/22] filesystemmodel: Guard variable with correct compiler flags



commit 2e941acb29e137ebd5f16a2f9ef868ca6c34bf38
Author: Benjamin Otte <otte redhat com>
Date:   Sat Feb 22 06:58:32 2020 +0100

    filesystemmodel: Guard variable with correct compiler flags

 gtk/gtkfilesystemmodel.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 8f382b8a3d..e7c4bd8bbb 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -867,6 +867,7 @@ gtk_file_system_model_set_sort_column_id (GtkTreeSortable  *sortable,
     {
       if (sort_column_id != GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID)
        {
+#ifndef G_DISABLE_CHECKS
          GtkTreeDataSortHeader *header = NULL;
 
          header = _gtk_tree_data_list_get_header (model->sort_list, 
@@ -875,6 +876,7 @@ gtk_file_system_model_set_sort_column_id (GtkTreeSortable  *sortable,
          /* We want to make sure that we have a function */
          g_return_if_fail (header != NULL);
          g_return_if_fail (header->func != NULL);
+#endif
        }
       else
        {


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