diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-09-17 17:10:30 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-09-17 17:10:30 +0200 |
commit | e5888b16afcef42e8127a815cc5a95abc283c6d9 (patch) | |
tree | 3cf056e46acab4ed88aecfc3171b43e75db69e48 /mysys/hash.c | |
parent | 3dea04c58bf665d98e3bbdb12a6386c5920c1b77 (diff) | |
download | mariadb-git-e5888b16afcef42e8127a815cc5a95abc283c6d9.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.c | 7 |
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))) |