diff options
author | unknown <guilhem@gbichot4.local> | 2007-09-20 16:11:46 +0200 |
---|---|---|
committer | unknown <guilhem@gbichot4.local> | 2007-09-20 16:11:46 +0200 |
commit | 95420b947e2e11050c480c8bda67e29b14f413b1 (patch) | |
tree | 4a04894cfbd1b638e8b6fccb3ef16dcbe79215c9 /storage/maria/ma_recovery.h | |
parent | be382b4220656eca2642943abca1f8ffcb1faaa2 (diff) | |
download | mariadb-git-95420b947e2e11050c480c8bda67e29b14f413b1.tar.gz |
fix for non-debug compilation errors.
Note that non-debug build fails in log handler functions, mail sent.
storage/maria/ma_blockrec.c:
fix for compiler warning
storage/maria/ma_checkpoint.c:
Debug build does not catch this situation
static int f();
...
f(2);
...
static int f(int a, int b);
Maybe this is because it believes the declaration is K&R. Non-debug
build catches it. Adding (void) as an habit to avoid such errors.
storage/maria/ma_checkpoint.h:
adding (void)
storage/maria/ma_recovery.c:
adding (void)
storage/maria/ma_recovery.h:
adding (void)
Diffstat (limited to 'storage/maria/ma_recovery.h')
-rw-r--r-- | storage/maria/ma_recovery.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_recovery.h b/storage/maria/ma_recovery.h index 6a4b359be4d..e3864d6022b 100644 --- a/storage/maria/ma_recovery.h +++ b/storage/maria/ma_recovery.h @@ -24,7 +24,7 @@ /* Performs recovery of the engine at start */ C_MODE_START -int maria_recover(); +int maria_recover(void); int maria_apply_log(LSN lsn, my_bool apply, FILE *trace_file, my_bool execute_undo_phase, my_bool skip_DDLs); C_MODE_END |