[glibmm] Avoid an unused-parameter compiler warning.



commit 833eccef1ec8bc0453f90390e94bdf731f8eb723
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Oct 26 12:35:23 2011 +0200

    Avoid an unused-parameter compiler warning.
    
    * glib/src/thread.ccg: thread_init(): Comment out the vtable parameter.

 ChangeLog           |    6 ++++++
 glib/src/thread.ccg |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index eba6598..a55b980 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-10-26  Murray Cumming  <murrayc murrayc com>
 
+	Avoid an unused-parameter compiler warning.
+
+	* glib/src/thread.ccg: thread_init(): Comment out the vtable parameter.
+
+2011-10-26  Murray Cumming  <murrayc murrayc com>
+
 	thread.h: Allow use of this without causing deprecation compiler warnings.
 
 	* glib/src/thread.hg: undef and then redefine G_DISABLE_DEPRECATED, and
diff --git a/glib/src/thread.ccg b/glib/src/thread.ccg
index 71c4b7d..c50101c 100644
--- a/glib/src/thread.ccg
+++ b/glib/src/thread.ccg
@@ -139,7 +139,7 @@ ThreadPriority Thread::get_priority() const
   return THREAD_PRIORITY_NORMAL; //An appropriate result now that this is deprecated because the priority concept has been removed.
 }
 
-void thread_init(GThreadFunctions* vtable)
+void thread_init(GThreadFunctions* /* vtable */)
 {
   //g_thread_init() is deprecated and now does nothing,
   //so we do not even call it. That avoids a need to link to gthread-2.0, 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]