aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorChristopher Li <sparse@chrisli.org>2017-07-17 19:25:58 -0400
committerChristopher Li <sparse@chrisli.org>2017-08-09 21:56:31 -0400
commitb1bcf2a5b9f43450bcb6055374c258c9de988502 (patch)
tree482c50986ce52435333984be030b8f9864c40ce6
parent9cee3e1148da50dfe51eb9fd900fdb5ece345d0b (diff)
downloadsparse-dev-b1bcf2a5b9f43450bcb6055374c258c9de988502.tar.gz
fix warnings report by selfcheck
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--ast-model.c2
-rw-r--r--ast-view.c3
-rw-r--r--lib.h1
3 files changed, 4 insertions, 2 deletions
diff --git a/ast-model.c b/ast-model.c
index 704c4878..63d27627 100644
--- a/ast-model.c
+++ b/ast-model.c
@@ -59,7 +59,7 @@ AstNode* ast_nth_child(AstNode *node, int n)
inspect_child_node(node);
if (n >= node->childnodes->len)
- return FALSE;
+ return NULL;
return g_array_index(node->childnodes, AstNode *, n);
}
diff --git a/ast-view.c b/ast-view.c
index c2b39630..22aba115 100644
--- a/ast-view.c
+++ b/ast-view.c
@@ -2,8 +2,9 @@
#include <stdlib.h>
#include "ast-model.h"
#include "ast-inspect.h"
+#include "ast-view.h"
-GtkWidget *
+static GtkWidget *
create_view_and_model (void *ptr)
{
GtkTreeViewColumn *text;
diff --git a/lib.h b/lib.h
index 3f8d3615..c90e0e32 100644
--- a/lib.h
+++ b/lib.h
@@ -150,6 +150,7 @@ extern int fdump_linearize;
extern unsigned long long fmemcpy_max_count;
extern int arch_m64;
+extern int arch_msize_long;
extern int arch_big_endian;
extern void declare_builtin_functions(void);