-Wdeprecated-copy compilation warnings for Linux GCC 9.3.0

• Dec 2, 2020 - 04:37
Reported version
4.x-dev
Type
Development
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

Building Musescore for Ubuntu 20.04 using GCC 9.3.0, creates many warnings such as this one:

MuseScore/libmscore/sig.h:125:53: warning: implicitly-declared ‘constexpr Ms::TimeSigFrac& Ms::TimeSigFrac::operator=(const Ms::TimeSigFrac&)’ is deprecated [-Wdeprecated-copy]
  125 |     void setNominal(const Fraction& f) { _nominal = f; }

steps to reproduce:

  1. compile Musescore on ubuntu 20.04 as per the developer handbook: https://musescore.org/en/handbook/developers-handbook/compilation/compi…

Comments