-Wdeprecated-copy compilation warnings for Linux GCC 9.3.0
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:
- compile Musescore on ubuntu 20.04 as per the developer handbook: https://musescore.org/en/handbook/developers-handbook/compilation/compi…
Comments
Currently the master branch produces quite many compiler warnings
Fixed in branch master, commit c04e338a1d
fix #313872: Fix -Wdeprecated-copy warnings
Fixed in branch master, commit eef95f07d4
fix #313872: followup to PR #6992, suppressed remaining -Wdeprecated-copy warnings
Automatically closed -- issue fixed for 2 weeks with no activity.