From d200c07d66ffb61e4cceb8e6c4a37d8d264cb918 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 23 Jun 2020 07:43:00 +0200 Subject: warning fix --- src/tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tree.c') diff --git a/src/tree.c b/src/tree.c index 899514e..5706c4c 100644 --- a/src/tree.c +++ b/src/tree.c @@ -6,6 +6,7 @@ #include "tree.h" +static int string_compare ( char* _1, char* _2 ); int tree_insert ( struct tree_node** _root, char* _key, void* _data ) { @@ -60,7 +61,7 @@ int tree_destroy ( struct tree_node** _root, uint8_t _options ) return 0; } -int string_compare ( char* _1, char* _2 ) +static int string_compare ( char* _1, char* _2 ) { if ( !_1 || !_2 ) return 99; @@ -89,6 +90,7 @@ int string_compare ( char* _1, char* _2 ) return -1; //TODO WARN may reach end of non-void function + return 99; } void* tree_get ( struct tree_node** _root, char* _query ) -- cgit v1.2.3