-Removed warnings from build

This commit is contained in:
Harry van Haaren 2013-09-20 11:30:19 +01:00
parent 7a2e2a4ef0
commit 6c0e72353f
5 changed files with 19 additions and 8 deletions

View file

@ -23,8 +23,8 @@ IF(BUILD_TESTS)
ADD_DEFINITIONS(-DBUILD_TESTS)
ADD_DEFINITIONS(-DBUILD_COVERAGE_TEST)
SET(CMAKE_CXX_FLAGS "-g -O0 -Wall -fprofile-arcs -ftest-coverage")
SET(CMAKE_C_FLAGS "-g -O0 -Wall -W -fprofile-arcs -ftest-coverage")
SET(CMAKE_CXX_FLAGS "-g -O0 -Wall -Wextra -fprofile-arcs -ftest-coverage")
SET(CMAKE_C_FLAGS "-g -O0 -Wall -Wextra -W -fprofile-arcs -ftest-coverage")
SET(CMAKE_EXE_LINKER_FLAGS "-fprofile-arcs -ftest-coverage")
ENDIF(BUILD_TESTS)

View file

@ -38,13 +38,13 @@ void GenericMIDI::recordArm(int t, bool enabled)
void GenericMIDI::progress(int t, int s, float f)
{
/*
unsigned char data[3];
data[0] = 176;
data[1] = 48; // record enable LED
data[2] = 127 * f;
jack->midiObserverWriteMIDI( _port, &data[0] );
*
}
void GenericMIDI::trackSend(int t, int send, float v)
@ -287,6 +287,10 @@ void GenericMIDI::midi(unsigned char* data)
int b2 = data[1];
int b3 = data[2];
// TODO: Generic MIDI needs MIDI map from JSON
// FIXME: used variables
if ( b2 == b3 ) {}
if ( b1 >= 144 && b1 < 144 + 16 ) // NOTE_ON
{
//noteOn( b1 - 144, b2, b3 );

View file

@ -178,6 +178,9 @@ int DiskWriter::writeSession()
sampleDir << sessionDir.str() << "/samples";
int sampleDirError = mkdir( sampleDir.str().c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH );
// FIXME: error check mkdir for error return
if ( sampleDirError ) {}
stringstream sessionLuppp;
sessionLuppp << sessionDir.str() << "/session.luppp";

View file

@ -65,13 +65,12 @@ class GMasterTrack : public Fl_Group
Avtk::Volume inputVolume;
Avtk::LightButton inputToSend;
Avtk::Dial inputToSendVol;
Avtk::LightButton inputToSidechainKey;
Avtk::Dial inputToSidechainSignalVol;
Avtk::LightButton inputToSend;
Avtk::Dial inputToSendVol;
Avtk::LightButton inputToMix;
Avtk::Dial inputToMixVol;

View file

@ -22,8 +22,8 @@ extern int jackSamplerate;
Jack::Jack() :
client( jack_client_open ( "Luppp", JackNullOption , 0 , 0 ) ),
controllerUpdater( new ControllerUpdater() ),
state( new State() ),
controllerUpdater( new ControllerUpdater() ),
clientActive(false)
{
jack = this;
@ -143,6 +143,11 @@ void Jack::activate()
Controller* g = new LupppGUI();
if ( !c || !m || !g )
{
LUPPP_WARN("%s","Error creating Controller subclass instance");
}
jack_activate( client );
jack_transport_start(client);
}