[gtk+/wip/otte/shader: 1/28] inspector: logical ‘or’ of collectively exhaustive tests is always true



commit 640611cfad952492e07a416f9f314820139c1966
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 18 18:19:42 2017 +0100

    inspector: logical ‘or’ of collectively exhaustive tests is always true
    
    gcc has amazing error messages.

 gtk/inspector/gtktreemodelrendernode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/gtktreemodelrendernode.c b/gtk/inspector/gtktreemodelrendernode.c
index 285cd01..bfb5a9c 100644
--- a/gtk/inspector/gtktreemodelrendernode.c
+++ b/gtk/inspector/gtktreemodelrendernode.c
@@ -607,7 +607,7 @@ gtk_tree_model_render_node_set_root_node (GtkTreeModelRenderNode *model,
   GtkTreePath *path;
 
   g_return_if_fail (GTK_IS_TREE_MODEL_RENDER_NODE (model));
-  g_return_if_fail (node == NULL || GSK_IS_RENDER_NODE (node));
+  g_return_if_fail (GSK_IS_RENDER_NODE (node));
 
   priv = model->priv;
 


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