HomeFreeBSD

MFH: r458124

Description

MFH: r458124

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)
Approved by: ports-secteam blanket

Details

Provenance
jbeichAuthored on
Parents
rP458124: databases/mysql56-server: unbreak build with Clang 6 (C++14 by default)
Branches
Unknown
Tags
Unknown