mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 05:19: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:
@@ -38,7 +38,7 @@ static void test_read_fd_equal(const char *testdir);
|
||||
#define PATH_MAX 256
|
||||
#endif
|
||||
|
||||
static void test_write_to_file()
|
||||
static void test_write_to_file(void)
|
||||
{
|
||||
json_object *jso;
|
||||
|
||||
@@ -234,7 +234,7 @@ static void test_read_valid_nested_with_fd(const char *testdir)
|
||||
close(d);
|
||||
}
|
||||
|
||||
static void test_read_nonexistant()
|
||||
static void test_read_nonexistant(void)
|
||||
{
|
||||
const char *filename = "./not_present.json";
|
||||
|
||||
@@ -252,7 +252,7 @@ static void test_read_nonexistant()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_read_closed()
|
||||
static void test_read_closed(void)
|
||||
{
|
||||
// Test reading from a closed fd
|
||||
int d = open("/dev/null", O_RDONLY);
|
||||
|
||||
Reference in New Issue
Block a user