chiark / gitweb /
Got rid of a warning about an unused variable
[clg] / glib / gcallback.lisp
index 0598e445824ae61fbf9a7cfad07ff3ce67be40d4..6d211f49fa16594b570deb88099a09237c35cbbd 100644 (file)
@@ -20,7 +20,7 @@
 ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-;; $Id: gcallback.lisp,v 1.30 2006-02-19 19:31:14 espen Exp $
+;; $Id: gcallback.lisp,v 1.32 2006-02-26 15:16:15 espen Exp $
 
 (in-package "GLIB")
 
@@ -29,6 +29,9 @@ (use-prefix "g")
 
 ;;;; Callback invokation
 
+(deftype gclosure () 'pointer)
+(register-type 'gclosure '|g_closure_get_type|)
+
 (defun register-callback-function (function)
   (check-type function (or null symbol function))
   (register-user-data function))
@@ -45,6 +48,7 @@ (define-callback closure-marshal nil
 (define-callback signal-emission-hook nil
     ((invocation-hint pointer) (n-params unsigned-int) (param-values pointer)
      (callback-id unsigned-int))
+  (declare (ignore invocation-hint))
   (callback-trampoline callback-id n-params param-values))
 
 (defun callback-trampoline (callback-id n-params param-values &optional
@@ -317,9 +321,6 @@ (defbinding signal-handler-is-connected-p () boolean
   (instance ginstance)
   (handler-id unsigned-int))
 
-(deftype gclosure () 'pointer)
-(register-type 'gclosure '|g_closure_get_type|)
-
 (defbinding (callback-closure-new "clg_callback_closure_new") () gclosure
   (callback-id unsigned-int) 
   (callback callback)