diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-09-24 19:13:51 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-09-24 19:13:51 -0300 |
commit | d47e8991cb7c950d5cf22b864f3dbd257b2b2dad (patch) | |
tree | 275b3a2bcb353bcf87c17aa9f8ca8e8d849cff9b /storage/myisam/rt_split.c | |
parent | 77a0ae9a9a1ca649b6b317587cabe0925d2441aa (diff) | |
download | mariadb-git-d47e8991cb7c950d5cf22b864f3dbd257b2b2dad.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/rt_split.c')
-rw-r--r-- | storage/myisam/rt_split.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/storage/myisam/rt_split.c b/storage/myisam/rt_split.c index 03d22de68fa..0b7cc43e062 100644 --- a/storage/myisam/rt_split.c +++ b/storage/myisam/rt_split.c @@ -178,18 +178,13 @@ static int split_rtree_node(SplitStruct *node, int n_entries, double **d_buffer, int n_dim) { SplitStruct *cur; - SplitStruct *a; - SplitStruct *b; + SplitStruct *UNINIT_VAR(a), *UNINIT_VAR(b); double *g1 = reserve_coords(d_buffer, n_dim); double *g2 = reserve_coords(d_buffer, n_dim); - SplitStruct *next; - int next_node; + SplitStruct *UNINIT_VAR(next); + int UNINIT_VAR(next_node); int i; SplitStruct *end = node + n_entries; - LINT_INIT(a); - LINT_INIT(b); - LINT_INIT(next); - LINT_INIT(next_node); if (all_size < min_size * 2) { |