Mixer: Clean up some compiler warnings.

This commit is contained in:
Jonathan Moore Liles 2010-02-01 00:23:01 -06:00
parent 684983e19d
commit c713db6f34
8 changed files with 9 additions and 14 deletions

View File

@ -400,7 +400,7 @@ Chain::can_configure_outputs ( Module *m, int n ) const
return true; return true;
} }
int unsigned int
Chain::maximum_name_length ( void ) Chain::maximum_name_length ( void )
{ {
return JACK::Client::maximum_name_length() - ( strlen( APP_NAME ) + 1 + ( instance_name ? strlen( instance_name ) + 1 : 0 ) ); return JACK::Client::maximum_name_length() - ( strlen( APP_NAME ) + 1 + ( instance_name ? strlen( instance_name ) + 1 : 0 ) );

View File

@ -116,7 +116,7 @@ public:
void log_children ( void ); void log_children ( void );
static int maximum_name_length ( void ); static unsigned int maximum_name_length ( void );
Engine *engine ( void ) const { return _engine; } Engine *engine ( void ) const { return _engine; }

View File

@ -77,7 +77,7 @@ JACK_Module::~JACK_Module ( )
int int
JACK_Module::can_support_inputs ( int n ) JACK_Module::can_support_inputs ( int )
{ {
return audio_output.size(); return audio_output.size();
} }

View File

@ -682,7 +682,7 @@ LADSPAInfo::MetadataRDFDescend(const char * uri,
// Add any instances found // Add any instances found
lrdf_uris * instances = lrdf_get_instances(uri); lrdf_uris * instances = lrdf_get_instances(uri);
if (instances) { if (instances) {
for (long j = 0; j < instances->count; j++) { for (unsigned long j = 0; j < instances->count; j++) {
unsigned long uid = lrdf_get_uid(instances->items[j]); unsigned long uid = lrdf_get_uid(instances->items[j]);
if (m_IDLookup.find(uid) != m_IDLookup.end()) { if (m_IDLookup.find(uid) != m_IDLookup.end()) {
ri.Plugins.push_back(m_IDLookup[uid]); ri.Plugins.push_back(m_IDLookup[uid]);
@ -713,7 +713,7 @@ LADSPAInfo::MetadataRDFDescend(const char * uri,
lrdf_uris * uris = lrdf_get_subclasses(uri); lrdf_uris * uris = lrdf_get_subclasses(uri);
if (uris) { if (uris) {
for (long i = 0; i < uris->count; i++) { for (unsigned long i = 0; i < uris->count; i++) {
MetadataRDFDescend(uris->items[i], this_uri_index); MetadataRDFDescend(uris->items[i], this_uri_index);
} }
} }

View File

@ -258,7 +258,7 @@ Mixer_Strip::name ( const char *name ) {
} }
void void
Mixer_Strip::configure_outputs ( Fl_Widget *o, void *v ) Mixer_Strip::configure_outputs ( Fl_Widget *, void *v )
{ {
((Mixer_Strip*)v)->configure_outputs(); ((Mixer_Strip*)v)->configure_outputs();
} }
@ -317,8 +317,6 @@ Mixer_Strip::init ( )
set_visible_focus(); set_visible_focus();
clip_children( 1 ); clip_children( 1 );
Fl_Pack *gain_pack;
{ Fl_Pack *o = new Fl_Pack( 2, 2, 114, 100 ); { Fl_Pack *o = new Fl_Pack( 2, 2, 114, 100 );
o->type( Fl_Pack::VERTICAL ); o->type( Fl_Pack::VERTICAL );
o->spacing( 2 ); o->spacing( 2 );
@ -379,9 +377,6 @@ Mixer_Strip::init ( )
o->callback( cb_handle, this ); o->callback( cb_handle, this );
o->when(FL_WHEN_RELEASE); o->when(FL_WHEN_RELEASE);
} }
// { Fl_Pack* o = new Fl_Pack(8, 208, 103, 471);
// { Fl_Pack* o = gain_pack = new Fl_Pack(8, 208, 103, 516 );
o->end(); o->end();
} }

View File

@ -268,7 +268,7 @@ Module_Parameter_Editor::cb_value_handle ( Fl_Widget *w, void *v )
} }
void void
Module_Parameter_Editor::cb_mode_handle ( Fl_Widget *w, void *v ) Module_Parameter_Editor::cb_mode_handle ( Fl_Widget *, void *v )
{ {
((Module_Parameter_Editor*)v)->make_controls(); ((Module_Parameter_Editor*)v)->make_controls();
} }

View File

@ -265,7 +265,7 @@ Plugin_Module::configure_inputs( int n )
} }
void * void *
Plugin_Module::discover_thread ( void * v ) Plugin_Module::discover_thread ( void * )
{ {
THREAD_ASSERT( Plugin_Discover ); THREAD_ASSERT( Plugin_Discover );

View File

@ -75,7 +75,7 @@ ensure_dirs ( void )
#include <signal.h> #include <signal.h>
static void cb_main ( Fl_Double_Window *o, void *v ) static void cb_main ( Fl_Double_Window *o, void *)
{ {
if ( Fl::event_key() != FL_Escape ) if ( Fl::event_key() != FL_Escape )
o->hide(); o->hide();