diff options
| author | Christopher Li <sparse@chrisli.org> | 2017-07-17 19:25:58 -0400 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2017-08-09 21:56:31 -0400 |
| commit | b1bcf2a5b9f43450bcb6055374c258c9de988502 (patch) | |
| tree | 482c50986ce52435333984be030b8f9864c40ce6 | |
| parent | 9cee3e1148da50dfe51eb9fd900fdb5ece345d0b (diff) | |
| download | sparse-dev-b1bcf2a5b9f43450bcb6055374c258c9de988502.tar.gz | |
fix warnings report by selfcheck
Signed-off-by: Christopher Li <sparse@chrisli.org>
| -rw-r--r-- | ast-model.c | 2 | ||||
| -rw-r--r-- | ast-view.c | 3 | ||||
| -rw-r--r-- | lib.h | 1 |
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); } @@ -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; @@ -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); |
