-Added -Werror to build flags, fixed two offenders

main
Harry van Haaren 2013-12-10 12:40:20 +00:00
parent e1b5dc895a
commit ddd44f3950
3 changed files with 5 additions and 5 deletions

View File

@ -37,8 +37,8 @@ IF(BUILD_TESTS)
ENDIF(BUILD_TESTS)
IF(RELEASE_BUILD)
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-unused-variable -ffast-math")
SET(CMAKE_C_FLAGS "-g -Wall -W -Wno-unused-variable -ffast-math")
SET(CMAKE_CXX_FLAGS "-g -Wall -Werror -Wno-unused-variable -ffast-math")
SET(CMAKE_C_FLAGS "-g -Wall -Werror -W -Wno-unused-variable -ffast-math")
ENDIF(RELEASE_BUILD)

View File

@ -475,7 +475,7 @@ void Gui::addMidiControllerToSetup(std::string c)
void Gui::setupMidiControllers()
{
for(int i = 0; i < controllerVector.size(); i++)
for(unsigned int i = 0; i < controllerVector.size(); i++)
{
GenericMIDI* c = new GenericMIDI( controllerVector.at(i).c_str() );
if ( c )

View File

@ -25,9 +25,9 @@
extern Jack* jack;
MidiIO::MidiIO() :
portsRegistered(false),
jackInputPort(0),
jackOutputPort(0),
portsRegistered(false)
jackOutputPort(0)
{
//LUPPP_NOTE("MidiIO %i",this);
}