[Bug 744485] New: [osx build] including gio/gio.h causes 'redefinition of typedef' warnings
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Feb 13 10:56:06 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=744485
Bug ID: 744485
Summary: [osx build] including gio/gio.h causes 'redefinition
of typedef' warnings
Classification: Platform
Product: GStreamer
Version: git master
OS: Mac OS
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: joybro201 at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 296799
--> https://bugzilla.gnome.org/attachment.cgi?id=296799&action=edit
This patch adds -Wno-typedef-redefinition compile option
On osx yosemite, compiling gstreamer with master of glib causes following
warning.
In file included from gstnetclientclock.c:58:
In file included from ./gstnettimepacket.h:25:
In file included from /mypath/install/include/glib-2.0/gio/gio.h:163:
/mypath/install/include/glib-2.0/gio/glistmodel.h:36:21: error:
redefinition of typedef 'GListModel' is a C11 feature
[-Werror,-Wtypedef-redefinition]
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
Here is my gcc version information;
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
This warning is caused by including gio/gio.h.
But, as the warning says, redefinition of typedef is valid in C11 and no need
to stop compiling for this.
I attached a patch to add -Wno-typedef-redefinition compile option to
configure.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list