Selaa lähdekoodia

Commented out some function arguments in test programs to avoid compiler warnings.

Gary Scavone 11 vuotta sitten
vanhempi
commit
db1d10a2c8
4 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 2 2
      tests/cmidiin.cpp
  2. 1 1
      tests/midiout.cpp
  3. 1 1
      tests/qmidiin.cpp
  4. 1 1
      tests/sysextest.cpp

+ 2 - 2
tests/cmidiin.cpp

@@ -19,7 +19,7 @@ void usage( void ) {
   exit( 0 );
 }
 
-void mycallback( double deltatime, std::vector< unsigned char > *message, void *userData )
+void mycallback( double deltatime, std::vector< unsigned char > *message, void */*userData*/ )
 {
   unsigned int nBytes = message->size();
   for ( unsigned int i=0; i<nBytes; i++ )
@@ -33,7 +33,7 @@ void mycallback( double deltatime, std::vector< unsigned char > *message, void *
 // It returns false if there are no ports available.
 bool chooseMidiPort( RtMidiIn *rtmidi );
 
-int main( int argc, char *argv[] )
+int main( int argc, char ** /*argv[]*/ )
 {
   RtMidiIn *midiin = 0;
 

+ 1 - 1
tests/midiout.cpp

@@ -24,7 +24,7 @@
 // It returns false if there are no ports available.
 bool chooseMidiPort( RtMidiOut *rtmidi );
 
-int main( int argc, char *argv[] )
+int main( void )
 {
   RtMidiOut *midiout = 0;
   std::vector<unsigned char> message;

+ 1 - 1
tests/qmidiin.cpp

@@ -22,7 +22,7 @@
 #endif
 
 bool done;
-static void finish( int ignore ){ done = true; }
+static void finish( int /*ignore*/ ){ done = true; }
 
 void usage( void ) {
   // Error function in case of incorrect command-line

+ 1 - 1
tests/sysextest.cpp

@@ -31,7 +31,7 @@ void usage( void ) {
 // It returns false if there are no ports available.
 bool chooseMidiPort( RtMidi *rtmidi );
 
-void mycallback( double deltatime, std::vector< unsigned char > *message, void *userData )
+void mycallback( double deltatime, std::vector< unsigned char > *message, void * /*userData*/ )
 {
   unsigned int nBytes = message->size();
   for ( unsigned int i=0; i<nBytes; i++ )