mirror of
https://github.com/json-c/json-c.git
synced 2026-04-06 05:49:07 +08:00
Fix build with clang-15+
Fixes
json_util.c:63:35: error: a function declaration without a prototype is deprecated in all versions of C [-We
rror,-Wstrict-prototypes]
const char *json_util_get_last_err()
^
void
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ static const char *to_json_string(json_object *obj, int flags)
|
||||
#endif
|
||||
|
||||
json_object *make_array(void);
|
||||
json_object *make_array()
|
||||
json_object *make_array(void)
|
||||
{
|
||||
json_object *my_array;
|
||||
|
||||
@@ -77,7 +77,7 @@ json_object *make_array()
|
||||
}
|
||||
|
||||
void test_array_del_idx(void);
|
||||
void test_array_del_idx()
|
||||
void test_array_del_idx(void)
|
||||
{
|
||||
int rc;
|
||||
size_t ii;
|
||||
@@ -143,7 +143,7 @@ void test_array_del_idx()
|
||||
}
|
||||
|
||||
void test_array_list_expand_internal(void);
|
||||
void test_array_list_expand_internal()
|
||||
void test_array_list_expand_internal(void)
|
||||
{
|
||||
int rc;
|
||||
size_t ii;
|
||||
|
||||
Reference in New Issue
Block a user