mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 21:39:06 +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:
@@ -19,7 +19,7 @@ static void test_printbuf_memset_length(void);
|
||||
#define __func__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
static void test_basic_printbuf_memset()
|
||||
static void test_basic_printbuf_memset(void)
|
||||
{
|
||||
struct printbuf *pb;
|
||||
|
||||
@@ -32,7 +32,7 @@ static void test_basic_printbuf_memset()
|
||||
printf("%s: end test\n", __func__);
|
||||
}
|
||||
|
||||
static void test_printbuf_memset_length()
|
||||
static void test_printbuf_memset_length(void)
|
||||
{
|
||||
struct printbuf *pb;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user