[gcr] gcr: Supress warnings when building gobject-introspection Gir files
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gcr: Supress warnings when building gobject-introspection Gir files
- Date: Fri, 19 Apr 2013 15:20:11 +0000 (UTC)
commit c144d948f5817f9f0950ce1a6aa46239269740ab
Author: Stef Walter <stefw gnome org>
Date: Fri Apr 19 16:35:53 2013 +0200
gcr: Supress warnings when building gobject-introspection Gir files
Requires: https://bugzilla.gnome.org/show_bug.cgi?id=698367
gck/gck.h | 2 ++
gcr/gcr-base.h | 2 ++
gcr/gcr-types.h | 13 ++-----------
3 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/gck/gck.h b/gck/gck.h
index c458012..b427abe 100644
--- a/gck/gck.h
+++ b/gck/gck.h
@@ -41,9 +41,11 @@ G_BEGIN_DECLS
* and add the C flag: -DGCK_API_SUBJECT_TO_CHANGE
*/
+#ifndef __GI_SCANNER__
#ifndef GCK_API_SUBJECT_TO_CHANGE
#error "This API has not yet reached stability."
#endif
+#endif
#define GCK_VENDOR_CODE 0x47434B00 /* GCK */
diff --git a/gcr/gcr-base.h b/gcr/gcr-base.h
index 36c209b..b388e1d 100644
--- a/gcr/gcr-base.h
+++ b/gcr/gcr-base.h
@@ -21,9 +21,11 @@
* Author: Stef Walter <stefw collabora co uk>
*/
+#ifndef __GI_SCANNER__
#ifndef GCR_API_SUBJECT_TO_CHANGE
#error <gcr/This API has not yet reached stability.>
#endif
+#endif
#ifndef __GCR_BASE_H__
#define __GCR_BASE_H__
diff --git a/gcr/gcr-types.h b/gcr/gcr-types.h
index e8a01c5..3c924df 100644
--- a/gcr/gcr-types.h
+++ b/gcr/gcr-types.h
@@ -32,19 +32,10 @@
#ifndef GCK_API_SUBJECT_TO_CHANGE
-/**
- * GCK_API_SUBJECT_TO_CHANGE: (skip)
- *
- * skip for gir introspection
- */
+#ifndef __GI_SCANNER__
#define GCK_API_SUBJECT_TO_CHANGE 1
-
-/**
- * __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__: (skip)
- *
- * skip for gir introspection
- */
#define __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__ 1
+#endif
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]