summaryrefslogtreecommitdiff
path: root/mysys/hash.c
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-09-17 17:10:30 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-09-17 17:10:30 +0200
commit38b6d49e826e1fde46c445d790eb7609b14c4220 (patch)
tree3cf056e46acab4ed88aecfc3171b43e75db69e48 /mysys/hash.c
parent7b07ef35c010ec73003803c505deb9dfe14263d5 (diff)
downloadmariadb-git-38b6d49e826e1fde46c445d790eb7609b14c4220.tar.gz
Bug #43414 Parenthesis (and other) warnings compiling MySQL
with gcc 4.3.2 This is the fifth patch cleaning up more GCC warnings about variables used before initialized using the new macro UNINIT_VAR().
Diffstat (limited to 'mysys/hash.c')
-rw-r--r--mysys/hash.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mysys/hash.c b/mysys/hash.c
index 4aab75609f4..3e7851a886f 100644
--- a/mysys/hash.c
+++ b/mysys/hash.c
@@ -332,11 +332,8 @@ my_bool my_hash_insert(HASH *info,const byte *record)
{
int flag;
uint halfbuff,hash_nr,first_index,idx;
- byte *ptr_to_rec,*ptr_to_rec2;
- HASH_LINK *data,*empty,*gpos,*gpos2,*pos;
-
- LINT_INIT(gpos); LINT_INIT(gpos2);
- LINT_INIT(ptr_to_rec); LINT_INIT(ptr_to_rec2);
+ byte *UNINIT_VAR(ptr_to_rec),*UNINIT_VAR(ptr_to_rec2);
+ HASH_LINK *data,*empty,*UNINIT_VAR(gpos),*UNINIT_VAR(gpos2),*pos;
flag=0;
if (!(empty=(HASH_LINK*) alloc_dynamic(&info->array)))