[pygobject] gi/pygobject-external.h: Remove GCCism
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] gi/pygobject-external.h: Remove GCCism
- Date: Wed, 30 Jan 2013 14:02:51 +0000 (UTC)
commit 20fc5aa7514215fc7807adceb603d17f7943304a
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Jan 25 12:58:26 2013 +0800
gi/pygobject-external.h: Remove GCCism
We can use G_GNUC_UNUSED from GLib that does the same purpose of
__attribute__ ( (unused)) when we are using a GCC that provides this.
The GLib headers that defines that macro should have already been included
before this header is included (due to use of gboolean).
https://bugzilla.gnome.org/show_bug.cgi?id=692856
gi/pygobject-external.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygobject-external.h b/gi/pygobject-external.h
index 4a1456d..8299864 100644
--- a/gi/pygobject-external.h
+++ b/gi/pygobject-external.h
@@ -30,7 +30,7 @@ static PyTypeObject *_PyGTypeWrapper_Type;
#define PyGTypeWrapper_Type (*_PyGTypeWrapper_Type)
-__attribute__ ( (unused))
+G_GNUC_UNUSED
static int
_pygobject_import (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]