summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index e9694b4820f..e96c3792f24 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -41,10 +41,14 @@ typedef struct st_key_part {
Field::imagetype image_type;
} KEY_PART;
+
class QUICK_RANGE :public Sql_alloc {
public:
char *min_key,*max_key;
uint16 min_length,max_length,flag;
+#ifdef HAVE_purify
+ uint16 dummy; /* Avoid warnings on 'flag' */
+#endif
QUICK_RANGE(); /* Full range */
QUICK_RANGE(const char *min_key_arg,uint min_length_arg,
const char *max_key_arg,uint max_length_arg,
@@ -54,7 +58,11 @@ class QUICK_RANGE :public Sql_alloc {
min_length((uint16) min_length_arg),
max_length((uint16) max_length_arg),
flag((uint16) flag_arg)
- {}
+ {
+#ifdef HAVE_purify
+ dummy=0;
+#endif
+ }
};