- removed warnings in GLUI, thanks Jorrit Tyberghein for the patch!
- removed memory leaks from BasicDemo and Bullet library (other demos needs to be cleaned up!) - added memory leak debugging functionality in btAlignedAlloc.h: #define BT_DEBUG_MEMORY_ALLOCATIONS
This commit is contained in:
@@ -757,7 +757,7 @@ public:
|
||||
void *font;
|
||||
int curr_modifiers;
|
||||
|
||||
void adjust_glut_xy( int &x, int &y ) { x; y = h-y; }
|
||||
void adjust_glut_xy( int &x, int &y ) { (void)x; y = h-y; }
|
||||
void activate_control( GLUI_Control *control, int how );
|
||||
void align_controls( GLUI_Control *control );
|
||||
void deactivate_current_control( void );
|
||||
@@ -884,19 +884,19 @@ public:
|
||||
virtual int get_id( void ) const { return user_id; }
|
||||
virtual void set_id( int id ) { user_id=id; }
|
||||
|
||||
virtual int mouse_down_handler( int local_x, int local_y ) { local_x; local_y; return false; }
|
||||
virtual int mouse_up_handler( int local_x, int local_y, bool inside ) { local_x; local_y; inside; return false; }
|
||||
virtual int mouse_held_down_handler( int local_x, int local_y, bool inside) { local_x; local_y; inside; return false; }
|
||||
virtual int key_handler( unsigned char key, int modifiers ) { key; modifiers; return false; }
|
||||
virtual int special_handler( int key,int modifiers ) { key; modifiers; return false; }
|
||||
virtual int mouse_down_handler( int local_x, int local_y ) { (void)local_x; (void)local_y; return false; }
|
||||
virtual int mouse_up_handler( int local_x, int local_y, bool inside ) { (void)local_x; (void)local_y; (void)inside; return false; }
|
||||
virtual int mouse_held_down_handler( int local_x, int local_y, bool inside) { (void)local_x; (void)local_y; (void)inside; return false; }
|
||||
virtual int key_handler( unsigned char key, int modifiers ) { (void)key; (void)modifiers; return false; }
|
||||
virtual int special_handler( int key,int modifiers ) { (void)key; (void)modifiers; return false; }
|
||||
|
||||
virtual void update_size( void ) { }
|
||||
virtual void idle( void ) { }
|
||||
virtual int mouse_over( int state, int x, int y ) { state; x; y; return false; }
|
||||
virtual int mouse_over( int state, int x, int y ) { (void)state; (void)x; (void)y; return false; }
|
||||
|
||||
virtual void enable( void );
|
||||
virtual void disable( void );
|
||||
virtual void activate( int how ) { how; active = true; }
|
||||
virtual void activate( int how ) { (void)how; active = true; }
|
||||
virtual void deactivate( void ) { active = false; }
|
||||
|
||||
/** Hide (shrink into a rollout) and unhide (expose from a rollout) */
|
||||
@@ -955,7 +955,7 @@ public:
|
||||
void sync_live( int recurse, int draw ); /* Reads live variable */
|
||||
void init_live( void );
|
||||
void output_live( int update_main_gfx ); /** Writes live variable **/
|
||||
virtual void set_text( const char *t ) { t; }
|
||||
virtual void set_text( const char *t ) { (void)t; }
|
||||
void execute_callback( void );
|
||||
void get_this_column_dims( int *col_x, int *col_y,
|
||||
int *col_w, int *col_h,
|
||||
|
||||
Reference in New Issue
Block a user