Fix for -Wunused-but-set-variable required compiler. : mod_freetdm mod_avmd mod_cidlookup mod_ladspa mod_lcr mod_nibblebill mod_rss mod_vdm mod_dahdi_codec mod_skinny mod_cdr_pg_csv

This commit is contained in:
Marc Olivier Chouinard committed 2011-04-22 22:49:41 -04:00
1 parent 5bcf487df9
commit ba7dc9fde8
13 files changed
+23 -44

No files matched your search

@@ -160,7 +160,6 @@ static void do_rotate(cdr_fd_t *fd)
char date[80] = "";
switch_size_t retsize;
char *p;
size_t len;
close(fd->fd);
fd->fd = -1;
@@ -169,7 +168,6 @@ static void do_rotate(cdr_fd_t *fd)
switch_time_exp_lt(&tm, switch_micro_time_now());
switch_strftime_nocheck(date, &retsize, sizeof(date), "%Y-%m-%d-%H-%M-%S", &tm);
len = strlen(fd->path) + strlen(date) + 2;
p = switch_mprintf("%s.%s", fd->path, date);
assert(p);
switch_file_rename(fd->path, p, globals.pool);