Fix more warnings as a result of #14

This commit is contained in:
VJ 2019-05-31 21:59:37 -04:00
parent 071e350c43
commit c8fd67bf84
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@
// Theses 2 atrbutes are not supported by all compilers: // Theses 2 atrbutes are not supported by all compilers:
// M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc // M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc
#define MDB_DEPRECATED(type, funcname) type __attribute__((deprecated)) funcname #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 { enum {
MDB_PAGE_DB = 0, MDB_PAGE_DB = 0,

View File

@ -76,7 +76,7 @@ free_names(GPtrArray *names) {
g_ptr_array_free(names, TRUE); g_ptr_array_free(names, TRUE);
} }
MdbProperties * MdbProperties *
mdb_alloc_props() mdb_alloc_props(void)
{ {
MdbProperties *props; MdbProperties *props;

View File

@ -44,7 +44,7 @@ struct type_struct {
}; };
char * char *
valid_types() valid_types(void)
{ {
static char ret[256]; /* be sure to allow for enough space if adding more */ static char ret[256]; /* be sure to allow for enough space if adding more */
int i = 0; int i = 0;