mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Fix more warnings as a result of #14
This commit is contained in:
parent
071e350c43
commit
c8fd67bf84
@ -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,
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user