MuseScore/mscore/importmidi
Eric Fontaine 7aa8c7e6cd fix #96971 suppress benign make release warnings
This commit removes some -Wempty-body, -Wmaybe-uninitialized, -Wunused-variable, and -Wstrict-overflow compiler warnings that arise on my x86-64 and ARM arch linux machines when compiling release.
These compiler warnings don't seem to cause any bugs, but since they pollute the build output, they make it harder to spot potentially important warnings that might arise, so I'm making these small changes to keep the build output clean.
The "empty-body" warnings occur because the Q_ASSERT statements are removed for release compiles, causing the else blocks to be empty.  Surrounding the Q_ASSERT with brackets will let the compiler know we aren't unintentionally having an empty else body.
The "maybe-uninitialized" warnings are handled by assigning the variables to 0 either at initialization or in a switch default block.
The "unused-variable" warning is due to PeriodItem updatePeriods[] in preferences.cpp being defined but never used, so I've removed PeriodItem.  Also a recent commit has an unused "int staves", which I've removed.
The "strict-overflow" warning is due to compiler wanting to perform an optimization which would cause signed overflow during a comparison operation.  I've made the compiler happy by casting the barIndex'es into unsigned ints, so it doesn't have to worry.
2016-02-12 01:28:16 -05:00
..
importmidi.cpp Read/write Midi mapping to msc* and midi files 2015-07-15 21:07:34 +05:00
importmidi_beat.cpp Simplification: find last chord tick later, right before quantization 2015-02-09 16:13:17 +03:00
importmidi_beat.h Simplification: find last chord tick later, right before quantization 2015-02-09 16:13:17 +03:00
importmidi_chord.cpp Add qDebug messages if note was removed due to overlap 2015-02-10 11:47:14 +03:00
importmidi_chord.h Rename class member variable 2015-01-22 17:25:58 +03:00
importmidi_chordname.cpp Make 'Show chord names' operation available only for all tracks 2015-02-02 18:34:53 +03:00
importmidi_chordname.h Make 'Show chord names' operation available only for all tracks 2015-02-02 18:34:53 +03:00
importmidi_clef.cpp Set percussion clef if empty MuseScore instrument is selected 2015-02-08 21:25:27 +03:00
importmidi_clef.h Don't show clef change checkbox on panel for tracks without G/F clefs 2014-12-31 12:48:09 +03:00
importmidi_delegate.cpp Prevent hiding of the top part of drop-down lists (MIDI panel) 2015-01-29 12:18:28 +03:00
importmidi_delegate.h
importmidi_drum.cpp Refactoring of drum track split function 2015-01-22 18:54:35 +03:00
importmidi_drum.h Use more smooth duration simplification for drum tracks 2015-01-22 17:25:58 +03:00
importmidi_fraction.cpp Fix debugging code 2015-04-18 23:08:07 +03:00
importmidi_fraction.h
importmidi_inner.cpp Split drum voices before tuplet detection 2015-01-22 17:26:07 +03:00
importmidi_inner.h Fix #53121, fix #44226 (accidentals and key signature in MIDI import) 2015-04-13 11:17:01 +03:00
importmidi_instrument.cpp cleanup instrument name handling 2015-04-13 17:12:53 +02:00
importmidi_instrument.h Set Ms instrument name (instead of MIDI sound) as a staff name 2015-03-01 17:51:35 +03:00
importmidi_key.cpp Fix #53121, fix #44226 (accidentals and key signature in MIDI import) 2015-04-13 11:17:01 +03:00
importmidi_key.h Fix #53121, fix #44226 (accidentals and key signature in MIDI import) 2015-04-13 11:17:01 +03:00
importmidi_lrhand.cpp Fix invalid Grand Staff recognition for drum tracks 2015-01-22 17:25:57 +03:00
importmidi_lrhand.h Fix invalid Grand Staff recognition for drum tracks 2015-01-22 17:25:57 +03:00
importmidi_lyrics.cpp Small optimization 2015-06-05 13:36:28 +03:00
importmidi_lyrics.h
importmidi_meter.cpp
importmidi_meter.h
importmidi_model.cpp cleanup instrument name handling 2015-04-13 17:12:53 +02:00
importmidi_model.h Make 'Show chord names' operation available only for all tracks 2015-02-02 18:34:53 +03:00
importmidi_operation.h
importmidi_operations.cpp
importmidi_operations.h Make 'Show chord names' operation available only for all tracks 2015-02-02 18:34:53 +03:00
importmidi_panel.cpp Don't request save score on 'Apply' call on unchanged score in MIDI import 2015-02-06 16:13:59 +03:00
importmidi_panel.h Disable/enable Cancel button depending on the presence of changes 2014-12-20 13:49:24 +03:00
importmidi_panel.ui fix #85901: Replace Up/Down buttons by arrows 2015-11-03 23:05:59 +01:00
importmidi_quant.cpp Rename class member variable 2015-01-22 17:25:58 +03:00
importmidi_quant.h
importmidi_simplify.cpp Fix out-of-tuplet note simplification in drum tracks 2015-01-22 17:26:06 +03:00
importmidi_simplify.h Use more smooth duration simplification for drum tracks 2015-01-22 17:25:58 +03:00
importmidi_swing.cpp fix #57861 bad import of & in part name 2015-04-27 13:03:52 +02:00
importmidi_swing.h
importmidi_tempo.cpp fix #28366: more replacement of unicode* with met* glyphs 2015-05-29 09:28:30 +02:00
importmidi_tempo.h Move tempo functions in MIDI import to separate files 2014-12-20 20:29:01 +03:00
importmidi_tie.cpp
importmidi_tie.h
importmidi_tuplet.cpp Refactoring: remove unused in release mode variable from function 2015-01-22 17:26:07 +03:00
importmidi_tuplet.h Refactoring: remove unused in release mode variable from function 2015-01-22 17:26:07 +03:00
importmidi_tuplet_detect.cpp
importmidi_tuplet_detect.h
importmidi_tuplet_filter.cpp Fix strict weak ordering in sorting in MIDI import 2015-01-22 17:26:04 +03:00
importmidi_tuplet_filter.h
importmidi_tuplet_tonotes.cpp Fix #53121, fix #44226 (accidentals and key signature in MIDI import) 2015-04-13 11:17:01 +03:00
importmidi_tuplet_tonotes.h Fix #53121, fix #44226 (accidentals and key signature in MIDI import) 2015-04-13 11:17:01 +03:00
importmidi_tuplet_voice.cpp fix compiler warnings in RELEASE mode under Windows 2014-12-18 21:45:49 +01:00
importmidi_tuplet_voice.h
importmidi_view.cpp
importmidi_view.h Draw double line as a frozen columns separator in the MIDI import panel 2014-12-30 12:41:26 +03:00
importmidi_voice.cpp fix #96971 suppress benign make release warnings 2016-02-12 01:28:16 -05:00
importmidi_voice.h