summaryrefslogtreecommitdiff
path: root/storage/myisam/mi_range.c
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-09-24 19:13:51 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2010-09-24 19:13:51 -0300
commit58dfba2899474553592479be24ef73947775eeaf (patch)
tree275b3a2bcb353bcf87c17aa9f8ca8e8d849cff9b /storage/myisam/mi_range.c
parent930a50f9d3709fb18c30a1c4d4f1b9908d53ed1f (diff)
downloadmariadb-git-58dfba2899474553592479be24ef73947775eeaf.tar.gz
Bug#45288: pb2 returns a lot of compilation warnings on linux
Use UNINIT_VAR workaround instead of LINT_INIT. The former can also be used to silence false-positives in non-debug builds as it actually does not cause new code to be generated.
Diffstat (limited to 'storage/myisam/mi_range.c')
-rw-r--r--storage/myisam/mi_range.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/myisam/mi_range.c b/storage/myisam/mi_range.c
index dc6dc9d62b7..e4205f36557 100644
--- a/storage/myisam/mi_range.c
+++ b/storage/myisam/mi_range.c
@@ -193,12 +193,11 @@ static double _mi_search_pos(register MI_INFO *info,
register my_off_t pos)
{
int flag;
- uint nod_flag,keynr,max_keynr;
+ uint nod_flag,keynr,UNINIT_VAR(max_keynr);
my_bool after_key;
uchar *keypos,*buff;
double offset;
DBUG_ENTER("_mi_search_pos");
- LINT_INIT(max_keynr);
if (pos == HA_OFFSET_ERROR)
DBUG_RETURN(0.5);