[pygobject] Suppress warnings about format conversion
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject] Suppress warnings about format conversion
- Date: Mon, 30 Nov 2009 20:11:43 +0000 (UTC)
commit 38e89942d29f2a1dba47ab4a8d5edc84322707cd
Author: Simon van der Linden <svdlinden src gnome org>
Date: Mon Nov 30 00:10:56 2009 +0100
Suppress warnings about format conversion
https://bugzilla.gnome.org/show_bug.cgi?id=603355
gobject/generate-constants.c | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/gobject/generate-constants.c b/gobject/generate-constants.c
index 7fee8e8..7789b96 100644
--- a/gobject/generate-constants.c
+++ b/gobject/generate-constants.c
@@ -24,21 +24,21 @@ int main(void)
printf("G_MINLONG = %ld%s\n", G_MINLONG, LONGSUFFIX);
printf("G_MAXLONG = %ld%s\n", G_MAXLONG, LONGSUFFIX);
printf("G_MAXULONG = %lu%s\n", G_MAXULONG, LONGSUFFIX);
- printf("G_MININT8 = %d\n", G_MININT8);
- printf("G_MAXINT8 = %d\n", G_MAXINT8);
- printf("G_MAXUINT8 = %u\n", G_MAXUINT8);
- printf("G_MININT16 = %d\n", G_MININT16);
- printf("G_MAXINT16 = %d\n", G_MAXINT16);
- printf("G_MAXUINT16 = %u\n", G_MAXUINT16);
- printf("G_MININT32 = %d\n", G_MININT32);
- printf("G_MAXINT32 = %d\n", G_MAXINT32);
- printf("G_MAXUINT32 = %u\n", G_MAXUINT32);
- printf("G_MININT64 = %lld%s\n", G_MININT64, LONGSUFFIX);
- printf("G_MAXINT64 = %lld%s\n", G_MAXINT64, LONGSUFFIX);
- printf("G_MAXUINT64 = %llu%s\n", G_MAXUINT64, LONGSUFFIX);
- printf("G_MAXSIZE = %d\n", G_MAXSIZE);
- printf("G_MAXSSIZE = %d\n", G_MAXSSIZE);
- printf("G_MINOFFSET = %lld%s\n", G_MINOFFSET, LONGSUFFIX);
- printf("G_MAXOFFSET = %lld%s\n", G_MAXOFFSET, LONGSUFFIX);
+ printf("G_MININT8 = %hhd\n", G_MININT8);
+ printf("G_MAXINT8 = %hhd\n", G_MAXINT8);
+ printf("G_MAXUINT8 = %hhu\n", G_MAXUINT8);
+ printf("G_MININT16 = %" G_GINT16_FORMAT "\n", G_MININT16);
+ printf("G_MAXINT16 = %" G_GINT16_FORMAT "\n", G_MAXINT16);
+ printf("G_MAXUINT16 = %" G_GUINT16_FORMAT "\n", G_MAXUINT16);
+ printf("G_MININT32 = %" G_GINT32_FORMAT "\n", G_MININT32);
+ printf("G_MAXINT32 = %" G_GINT32_FORMAT "\n", G_MAXINT32);
+ printf("G_MAXUINT32 = %" G_GUINT32_FORMAT "\n", G_MAXUINT32);
+ printf("G_MININT64 = %" G_GINT64_FORMAT "%s\n", G_MININT64, LONGSUFFIX);
+ printf("G_MAXINT64 = %" G_GINT64_FORMAT "%s\n", G_MAXINT64, LONGSUFFIX);
+ printf("G_MAXUINT64 = %" G_GUINT64_FORMAT "%s\n", G_MAXUINT64, LONGSUFFIX);
+ printf("G_MAXSIZE = %" G_GSIZE_FORMAT "%s\n", G_MAXSIZE, LONGSUFFIX);
+ printf("G_MAXSSIZE = %" G_GSSIZE_FORMAT "%s\n", G_MAXSSIZE, LONGSUFFIX);
+ printf("G_MINOFFSET = %" G_GOFFSET_FORMAT "%s\n", G_MINOFFSET, LONGSUFFIX);
+ printf("G_MAXOFFSET = %" G_GOFFSET_FORMAT "%s\n", G_MAXOFFSET, LONGSUFFIX);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]