summaryrefslogtreecommitdiff
path: root/sql/ha_archive.cc
diff options
context:
space:
mode:
authorjani@ua141d10.elisa.omakaista.fi <>2007-02-28 22:23:35 +0200
committerjani@ua141d10.elisa.omakaista.fi <>2007-02-28 22:23:35 +0200
commitbcbc0031ebf001dd53e4322aeda67267c5ce3d03 (patch)
tree288ffce0d7e95cc7177686fa96f53632b56e4161 /sql/ha_archive.cc
parent01ea1aa44d4d1ab0abb288f8b6b4627c19a052c9 (diff)
downloadmariadb-git-bcbc0031ebf001dd53e4322aeda67267c5ce3d03.tar.gz
Fixed compiler warnings.
Diffstat (limited to 'sql/ha_archive.cc')
-rw-r--r--sql/ha_archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_archive.cc b/sql/ha_archive.cc
index 96b6861007e..730d8b46945 100644
--- a/sql/ha_archive.cc
+++ b/sql/ha_archive.cc
@@ -750,7 +750,7 @@ int ha_archive::write_row(byte *buf)
if ((*field)->real_type() == MYSQL_TYPE_VARCHAR)
{
uint actual_length= (*field)->data_length((char*) buf + (*field)->offset());
- uint offset= (*field)->offset() + actual_length +
+ IF_DBUG(uint offset=) (*field)->offset() + actual_length +
(actual_length > 255 ? 2 : 1);
DBUG_PRINT("archive",("Offset is %d -> %d\n", actual_length, offset));
/*