diff options
| author | Sergey Vojtovich <svoj@mariadb.org> | 2016-04-28 21:59:23 +0400 |
|---|---|---|
| committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-04-28 22:04:41 +0400 |
| commit | 94bad73dd1dd563a3a324dcd519975f6d995dc88 (patch) | |
| tree | d9aedcd95cabe972757030caae5a72a38e681e82 /sql/sql_parse.h | |
| parent | e5810727a95659c3cd841d1dd070a19bd011ccd5 (diff) | |
| download | mariadb-git-94bad73dd1dd563a3a324dcd519975f6d995dc88.tar.gz | |
MDEV-9988 - Insert cast to suppress -Wdynamic-class-memaccess
Clang warns on this code because it is memsetting over a vtable contained in a
struct in the best_positions array. The diagnostic text is:
mariadb/sql/sql_select.cc:24462:10: error: destination for this 'memset' call is
a pointer to class containing a dynamic class 'Duplicate_weedout_picker'; vtable
pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]
memset(best_positions, 0, sizeof(POSITION) * (table_count + 1));
~~~~~~ ^
Patch contributed by David Gow.
Diffstat (limited to 'sql/sql_parse.h')
0 files changed, 0 insertions, 0 deletions
