FLTK logo

[Library] r8275 - branches/branch-1.3/FL

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r8275 - branches/branch-1.3/FL fltk-dev Jan 13, 2011  
 
Author: manolo
Date: 2011-01-13 14:07:31 -0800 (Thu, 13 Jan 2011)
New Revision: 8275
Log:
Fix STR #2518: remove gcc 4.4 compilation warnings with -Wall

Modified:
   branches/branch-1.3/FL/Fl_Browser_.H

Modified: branches/branch-1.3/FL/Fl_Browser_.H
===================================================================
--- branches/branch-1.3/FL/Fl_Browser_.H	2011-01-13 22:00:11 UTC (rev 8274)
+++ branches/branch-1.3/FL/Fl_Browser_.H	2011-01-13 22:07:31 UTC (rev 8275)
@@ -138,20 +138,20 @@
     \param[in] item The item whose label text is returned.
     \returns The item's text label. (Can be NULL if blank)
    */
-  virtual const char *item_text(void *item) const { return 0L; }
+  virtual const char *item_text(void *item) const { (void)item; return 0L; }
   /**
     This optional method should be provided by the subclass 
     to efficiently swap browser items \p a and \p b, such as for sorting.
     \param[in] a,b The two items to be swapped.
    */
-  virtual void item_swap(void *a,void *b) { }
+  virtual void item_swap(void *a,void *b) { (void)a; (void)b; }
   /**
     This method must be provided by the subclass 
     to return the item for the specified \p index. 
     \param[in] index The \p index of the item to be returned
     \returns The item at the specified \p index.
    */
-  virtual void *item_at(int index) const { return 0L; }
+  virtual void *item_at(int index) const { (void)index; return 0L; }
   // you don't have to provide these but it may help speed it up:
   virtual int full_width() const ;	// current width of all items
   virtual int full_height() const ;	// current height of all items

Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.