diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-04-24 12:14:35 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-04-24 12:48:27 +0300 |
commit | 39a4985520ebeb8c77d657e4624359a484ad330f (patch) | |
tree | 996c5891a58ad1db8921dfd84434fcf7c7b8b232 /sql/uniques.h | |
parent | 2a00bdeb4a65f9f56372a9f01d8bee21fe58407c (diff) | |
download | mariadb-git-39a4985520ebeb8c77d657e4624359a484ad330f.tar.gz |
Remove most 'register' use in C++
Modern compilers (such as GCC 8) emit warnings that the
'register' keyword is deprecated and not valid C++17.
Let us remove most use of the 'register' keyword.
Code in 'extra/' is not touched.
Diffstat (limited to 'sql/uniques.h')
-rw-r--r-- | sql/uniques.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/uniques.h b/sql/uniques.h index efc79953bb6..654b3692aaa 100644 --- a/sql/uniques.h +++ b/sql/uniques.h @@ -77,7 +77,7 @@ public: inline static int get_cost_calc_buff_size(size_t nkeys, uint key_size, size_t max_in_memory_size) { - register size_t max_elems_in_tree= + size_t max_elems_in_tree= max_in_memory_size / ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size); return (int) (sizeof(uint)*(1 + nkeys/max_elems_in_tree)); } |