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

PXB does not compile on Gcc-11

Details

    • Yes

    Description

      /work/pxb/src/8.0/storage/innobase/xtrabackup/src/keyring_plugins.cc: In function ‘bool xb_tablespace_keys_dump(ds_ctxt_t*, const char*, size_t)’:
      /work/pxb/src/8.0/storage/innobase/xtrabackup/src/keyring_plugins.cc:761:19: error: loop variable ‘entry’ creates a copy from type ‘const std::pair<const long unsigned int, tablespace_encryption_info>’ [-Werror=range-loop-construct]
        761 |   for (const auto entry : encryption_info) {
            |                   ^~~~~
      /work/pxb/src/8.0/storage/innobase/xtrabackup/src/keyring_plugins.cc:761:19: note: use reference type to prevent copying
        761 |   for (const auto entry : encryption_info) {
            |                   ^~~~~
            |                   &
       

      Attachments

        Activity

          People

            marcelo.altmann Marcelo Altmann
            marcelo.altmann Marcelo Altmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist