fix compiler warnings in RELEASE mode under Windows
reg. possible uninitialized use of some variables and some unused parameters
This commit is contained in:
parent
86ec8d93c4
commit
cdb31d60cb
11 changed files with 19 additions and 12 deletions
|
@ -2022,7 +2022,7 @@ qreal Score::cautionaryWidth(Measure* m, bool& hasCourtesy)
|
|||
Segment* ns = nm->findSegment(Segment::Type::TimeSig, tick);
|
||||
bool showCourtesy = styleB(StyleIdx::genCourtesyTimesig);
|
||||
|
||||
qreal w;
|
||||
qreal w = 0.0;
|
||||
if (showCourtesy && ns) {
|
||||
TimeSig* ts = static_cast<TimeSig*>(ns->element(0));
|
||||
if (ts && ts->showCourtesySig()) {
|
||||
|
@ -2039,8 +2039,6 @@ qreal Score::cautionaryWidth(Measure* m, bool& hasCourtesy)
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
w = 0.0;
|
||||
|
||||
// courtesy key signatures
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ bool Score::pasteStaff(XmlReader& e, Segment* dst, int dstStaff)
|
|||
int dstTick = dst->tick();
|
||||
bool done = false;
|
||||
bool pasted = false;
|
||||
int tickLen, staves;
|
||||
int tickLen, staves = 0;
|
||||
while (e.readNextStartElement()) {
|
||||
if (done)
|
||||
break;
|
||||
|
|
|
@ -3066,7 +3066,7 @@ void Score::lassoSelectEnd()
|
|||
Segment* endSegment = 0;
|
||||
int startStaff = 0x7fffffff;
|
||||
int endStaff = 0;
|
||||
const ChordRest* endCR;
|
||||
const ChordRest* endCR = 0;
|
||||
|
||||
if (_selection.elements().isEmpty()) {
|
||||
_selection.setState(SelState::NONE);
|
||||
|
|
|
@ -612,7 +612,7 @@ qreal Staff::mag() const
|
|||
SwingParameters Staff::swing(int tick) const
|
||||
{
|
||||
SwingParameters sp;
|
||||
int swingUnit;
|
||||
int swingUnit = 0;
|
||||
QString unit = score()->styleSt(StyleIdx::swingUnit);
|
||||
int swingRatio = score()->styleI(StyleIdx::swingRatio);
|
||||
if (unit == TDuration(TDuration::DurationType::V_EIGHTH).name()) {
|
||||
|
|
|
@ -552,7 +552,7 @@ void MuseScore::newFile()
|
|||
score->fileInfo()->setFile(newWizard->title());
|
||||
Measure* pm = score->firstMeasure();
|
||||
|
||||
Measure* nm;
|
||||
Measure* nm = 0;
|
||||
for (int i = 0; i < measures; ++i) {
|
||||
if (pm) {
|
||||
nm = pm;
|
||||
|
|
|
@ -589,8 +589,8 @@ Fraction GuitarPro6::rhythmToDuration(QString value)
|
|||
|
||||
void GuitarPro6::readDrumNote(Note* note, int element, int variation)
|
||||
{
|
||||
int octaveInt;
|
||||
int toneInt;
|
||||
int octaveInt = 0;
|
||||
int toneInt = 0;
|
||||
/* These numbers below were determined by creating all drum
|
||||
* notes in a GPX format file and then analyzing the score.gpif
|
||||
* file which specifies the score. */
|
||||
|
|
|
@ -56,7 +56,7 @@ ReducedFraction quantValueToFraction(MidiOperations::QuantValue quantValue)
|
|||
MidiOperations::QuantValue fractionToQuantValue(const ReducedFraction &fraction)
|
||||
{
|
||||
const auto division = ReducedFraction::fromTicks(MScore::division);
|
||||
MidiOperations::QuantValue quantValue;
|
||||
MidiOperations::QuantValue quantValue = MidiOperations::QuantValue::Q_4;
|
||||
|
||||
if (fraction == division)
|
||||
quantValue = MidiOperations::QuantValue::Q_4;
|
||||
|
@ -815,6 +815,9 @@ void findChordRangeEnds(
|
|||
const ReducedFraction &barStart,
|
||||
const ReducedFraction &beatLen)
|
||||
{
|
||||
#ifdef NDEBUG
|
||||
(void)rangeStart;
|
||||
#endif
|
||||
for (auto it = data.rbegin(); it != data.rend(); ++it) {
|
||||
QuantData &d = *it;
|
||||
d.chordRangeEnd = barStart + quantizeToSmall(rangeEnd - barStart, d.quant);
|
||||
|
|
|
@ -1088,6 +1088,9 @@ void findAllTuplets(
|
|||
const ReducedFraction &lastTick,
|
||||
const ReducedFraction &basicQuant)
|
||||
{
|
||||
#ifdef NDEBUG
|
||||
(void)lastTick;
|
||||
#endif
|
||||
if (chords.empty())
|
||||
return;
|
||||
|
||||
|
|
|
@ -455,6 +455,9 @@ void setVoicesFromPrevBars(
|
|||
const ReducedFraction &basicQuant,
|
||||
const ReducedFraction &barStart)
|
||||
{
|
||||
#ifdef NDEBUG
|
||||
(void)pendingNonTuplets;
|
||||
#endif
|
||||
bool loopAgain = false;
|
||||
do {
|
||||
for (auto it = backTiedTuplets.begin(); it != backTiedTuplets.end(); ) {
|
||||
|
|
|
@ -910,7 +910,7 @@ void InspectorBarLine::spanTypeChanged(int idx)
|
|||
Score* score = bl->score();
|
||||
score->startCmd();
|
||||
|
||||
int spanStaves, spanFrom, spanTo;
|
||||
int spanStaves, spanFrom = 0, spanTo = 0;
|
||||
// the amount to adjust To value of short types, if staff num. of lines != 5
|
||||
int shortDelta = bl->staff() ? (bl->staff()->lines() - 5)*2 : 0;
|
||||
spanStaves = 1; // in most cases, num. of spanned staves is 1
|
||||
|
|
2
thirdparty/kQOAuth/kqoauthmanager.cpp
vendored
2
thirdparty/kQOAuth/kqoauthmanager.cpp
vendored
|
@ -306,7 +306,7 @@ void KQOAuthManager::executeAuthorizedRequest(KQOAuthRequest *request, int id) {
|
|||
}
|
||||
networkRequest.setRawHeader("Authorization", authHeader);
|
||||
|
||||
QNetworkReply *reply;
|
||||
QNetworkReply *reply = 0;
|
||||
|
||||
if (request->httpMethod() == KQOAuthRequest::POST) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue