diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-14 19:06:02 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-14 19:06:02 +0300 |
commit | 4e9aeb3c4ffc69daff061c8b870f1a228bb78175 (patch) | |
tree | e56ce0518c621211504039d9b78bcae6d21554da /src/statfile.c | |
parent | 9752a52355f237729a9536eccd930cb60a198695 (diff) | |
download | rspamd-4e9aeb3c4ffc69daff061c8b870f1a228bb78175.tar.gz rspamd-4e9aeb3c4ffc69daff061c8b870f1a228bb78175.zip |
Remove some warnings.
Diffstat (limited to 'src/statfile.c')
-rw-r--r-- | src/statfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statfile.c b/src/statfile.c index efdb6ad56..26d96a38c 100644 --- a/src/statfile.c +++ b/src/statfile.c @@ -288,7 +288,8 @@ statfile_pool_reindex (statfile_pool_t * pool, gchar *filename, size_t old_size, static void statfile_preload (stat_file_t *file) { - guint8 *pos, *end, t; + guint8 *pos, *end; + volatile guint8 t; gsize size; pos = (guint8 *)file->map; @@ -306,6 +307,7 @@ statfile_preload (stat_file_t *file) #endif while (pos < end) { t = *pos; + (void)t; pos += size; } } @@ -550,7 +552,6 @@ double statfile_pool_get_block (statfile_pool_t * pool, stat_file_t * file, guint32 h1, guint32 h2, time_t now) { struct stat_file_block *block; - struct stat_file_header *header; guint i, blocknum; u_char *c; @@ -561,7 +562,6 @@ statfile_pool_get_block (statfile_pool_t * pool, stat_file_t * file, guint32 h1, } blocknum = h1 % file->cur_section.length; - header = (struct stat_file_header *)file->map; c = (u_char *) file->map + file->seek_pos + blocknum * sizeof (struct stat_file_block); block = (struct stat_file_block *)c; |