HomeFreeBSD

databases/mysql56-server: unbreak build with Clang 6 (C++14 by default)

Description

databases/mysql56-server: unbreak build with Clang 6 (C++14 by default)

sql-common/client_authentication.cc:87:56: error: comparison between pointer and integer ('char *' and 'int')

mysql->options.extension->server_public_key_path != '\0')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~

sql/sql_trigger.cc:195:5: error:

  non-constant-expression cannot be narrowed from type 'int' to 'size_t' (aka 'unsigned long') in
  initializer list [-Wc++11-narrowing]
static_cast<int>(my_offsetof(class Table_triggers_list, definitions_list)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported by: antoine (via bug 224669)

Details

Provenance
jbeichAuthored on
Parents
rP458123: - Add thefuck 3.25
Branches
Unknown
Tags
Unknown