Warnings and errors when building percona server with Clang 6

Description

Currently PS 5.5 fails with an error, and PS 5.5,  5.6 and 5.7 reports warnings, preventing maintainer mode to be used.

We also need additions to the travis configs to the our changes with clang 6 in the future, for all 3 versions.

Environment

None

Smart Checklist

Activity

Show:

Zsolt Parragi March 28, 2018 at 8:28 AM

Both done.

Laurynas Biveinis March 16, 2018 at 3:38 PM

, could you please PR the patch to 8.0.4 seed branch if the issue is present there?

Zsolt Parragi March 15, 2018 at 8:43 AM

The warnings:

  • In 5.5 and 5.6, about the register keyword. This was fixed shortly after opening the 5.7 branch

  • In 5.7, about using different enum values than the type of the variable in a switch, for some reason, only in the release build

The error:

  • there is an implicit narrowing cast in a constant expression when using the my_offsetof macro, which was fixed shortly after opening the 5.6 branch

Laurynas Biveinis March 15, 2018 at 4:34 AM

Could you show a subset of warnings/errors?

Done

Details

Assignee

Reporter

Labels

Time tracking

1d 1h 31m logged

Affects versions

Priority

Smart Checklist

Created March 14, 2018 at 1:00 PM
Updated March 30, 2018 at 12:22 PM
Resolved March 16, 2018 at 1:11 PM