Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-5121

clang-7 warnings with -Wself-assign-overloaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.23-25, Not 8.0.x
    • Fix Version/s: 5.7.25-28
    • Component/s: None
    • Labels:

      Description

      After adding clang-7 Travis CI started to report a new warning

      In file included from /home/travis/build/percona/percona-server/bin/unittest/gunit/merge_large_tests.cc:8:
      /home/travis/build/percona/percona-server/unittest/gunit/gis_algos-t.cc:255:5: error: explicitly assigning value of variable of type 'Gis_line_string' to itself [-Werror,-Wself-assign-overloaded]
        ls= ls;
        ~~^ ~~
      /home/travis/build/percona/percona-server/unittest/gunit/gis_algos-t.cc:256:7: error: explicitly assigning value of variable of type 'Gis_line_string' to itself [-Werror,-Wself-assign-overloaded]
        ls00= ls00;
        ~~~~^ ~~~~
      /home/travis/build/percona/percona-server/unittest/gunit/gis_algos-t.cc:257:7: error: explicitly assigning value of variable of type 'Gis_polygon' to itself [-Werror,-Wself-assign-overloaded]
        plgn= plgn;
        ~~~~^ ~~~~
      

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              przemyslaw.skibinski Przemyslaw Skibinski
              Reporter:
              przemyslaw.skibinski Przemyslaw Skibinski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h