Uploaded image for project: 'Percona XtraBackup'
  1. Percona XtraBackup
  2. PXB-487

LP #1641612: New compilation warnings with GCC 6 (-Wshift-negative-value, -Wdeprecated-declarations, -Wnonnull-compare, -Wc+11-compat, -Wmisleading-indentation)

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      **Reported in Launchpad by Laurynas Biveinis last update 24-11-2016 12:31:36

      On 5.5 trunk:

      [ 7%] Building C object extra/CMakeFiles/innochecksum.dir/innochecksum.c.o
      /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/extra/innochecksum.c: In function display_format_info:
      /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/extra/innochecksum.c:60:8: error: left shift of negative value [-Werror=shift-negative-value]
      ((~(~0 << (DICT_TF_BITS - DICT_TF_FORMAT_SHIFT))) << DICT_TF_FORMAT_SHIFT)
      ^
      /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/debug/Host/ubuntu-yakkety-64bit/extra/innochecksum.c:213:28: note: in expansion of macro DICT_TF_FORMAT_MASK
      ulint format = flags & DICT_TF_FORMAT_MASK >> DICT_TF_FORMAT_SHIFT;
      ^~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      extra/CMakeFiles/innochecksum.dir/build.make:62: recipe for target 'extra/CMakeFiles/innochecksum.dir/innochecksum.c.o' failed
      make[2]: *** [extra/CMakeFiles/innochecksum.dir/innochecksum.c.o] Error 1
      make[2]: Target 'extra/CMakeFiles/innochecksum.dir/build' not remade because of errors.
      CMakeFiles/Makefile2:3539: recipe for target 'extra/CMakeFiles/innochecksum.dir/all' failed
      make[1]: *** [extra/CMakeFiles/innochecksum.dir/all] Error 2

      Attachments

        Activity

          People

            Unassigned Unassigned
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist