mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Disabled compiler warnings.
sql/ha_archive.cc: Fixed a warning from unused computed value. This block is only used in debug mode and changes nothing. support-files/compiler_warnings.supp: Disabled a warning from BDB.
This commit is contained in:
parent
def9c0b236
commit
c04d5985c1
2 changed files with 4 additions and 1 deletions
|
|
@ -749,10 +749,12 @@ int ha_archive::write_row(byte *buf)
|
|||
DBUG_PRINT("archive",("MyPack is %d\n", (*field)->data_length((char*) buf + (*field)->offset())));
|
||||
if ((*field)->real_type() == MYSQL_TYPE_VARCHAR)
|
||||
{
|
||||
#ifndef DBUG_OFF
|
||||
uint actual_length= (*field)->data_length((char*) buf + (*field)->offset());
|
||||
IF_DBUG(uint offset=) (*field)->offset() + actual_length +
|
||||
uint offset= (*field)->offset() + actual_length +
|
||||
(actual_length > 255 ? 2 : 1);
|
||||
DBUG_PRINT("archive",("Offset is %d -> %d\n", actual_length, offset));
|
||||
#endif
|
||||
/*
|
||||
if ((*field)->pack_length() + (*field)->offset() != offset)
|
||||
bzero(buf + offset, (size_t)((*field)->pack_length() + (actual_length > 255 ? 2 : 1) - (*field)->data_length));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue