[next] telepathy-glib: Don' t have a second copy of the TpBaseConnection typedef
Jonny Lamb
jonny at kemper.freedesktop.org
Fri Aug 31 03:18:52 PDT 2012
Module: telepathy-glib
Branch: next
Commit: e293209646eee5b6c3c00f8644e627db31d843de
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=e293209646eee5b6c3c00f8644e627db31d843de
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Aug 6 09:19:40 2012 +0100
Don't have a second copy of the TpBaseConnection typedef
N1570 (C11 final draft) §6.7.3 says this usage is valid[1] so modern
gcc doesn't have an option to even warn about it, but this is a recent
change to the C standard, and older compilers like the one in the
Android NDK treat it as a fatal error.
[1] "a typedef name may be redefined to denote the same
type as it currently does, provided that type is not a variably
modified type"
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53100
Reviewed-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
telepathy-glib/base-connection.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/telepathy-glib/base-connection.h b/telepathy-glib/base-connection.h
index b158328..264f642 100644
--- a/telepathy-glib/base-connection.h
+++ b/telepathy-glib/base-connection.h
@@ -38,7 +38,7 @@
G_BEGIN_DECLS
-typedef struct _TpBaseConnection TpBaseConnection;
+/* The TpBaseConnection typedef is forward-declared in handle-repo.h */
typedef struct _TpBaseConnectionClass TpBaseConnectionClass;
typedef struct _TpBaseConnectionPrivate TpBaseConnectionPrivate;
More information about the telepathy-commits
mailing list