From c8fd67bf84df88f3312a45e58069e7db95d25f97 Mon Sep 17 00:00:00 2001 From: VJ Date: Fri, 31 May 2019 21:59:37 -0400 Subject: [PATCH] Fix more warnings as a result of #14 --- include/mdbtools.h | 2 +- src/libmdb/props.c | 2 +- src/util/mdb-tables.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mdbtools.h b/include/mdbtools.h index d2fc942..e5f5baa 100644 --- a/include/mdbtools.h +++ b/include/mdbtools.h @@ -54,7 +54,7 @@ // Theses 2 atrbutes are not supported by all compilers: // M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc #define MDB_DEPRECATED(type, funcname) type __attribute__((deprecated)) funcname -#define MDB_CONSTRUCTOR(funcname) void __attribute__((constructor)) funcname() +#define MDB_CONSTRUCTOR(funcname) void __attribute__((constructor)) funcname(void) enum { MDB_PAGE_DB = 0, diff --git a/src/libmdb/props.c b/src/libmdb/props.c index d1a0af6..801fd5b 100644 --- a/src/libmdb/props.c +++ b/src/libmdb/props.c @@ -76,7 +76,7 @@ free_names(GPtrArray *names) { g_ptr_array_free(names, TRUE); } MdbProperties * -mdb_alloc_props() +mdb_alloc_props(void) { MdbProperties *props; diff --git a/src/util/mdb-tables.c b/src/util/mdb-tables.c index 5b36f2a..0ae5a08 100644 --- a/src/util/mdb-tables.c +++ b/src/util/mdb-tables.c @@ -44,7 +44,7 @@ struct type_struct { }; char * -valid_types() +valid_types(void) { static char ret[256]; /* be sure to allow for enough space if adding more */ int i = 0;