<div dir="ltr">Just running autogen.sh and make a Ubuntu Desktop 13.10 amd64, so I haven't really made a conscience choice regarding debugging and -Werror. Just compiling out of the box wjich fails for plugins-bad.<br>
<br><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 8, 2014 at 10:52 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Do, 2014-05-08 at 10:32 -0400, Nicolas Dufresne wrote:<br>
> Le mercredi 07 mai 2014 à 22:44 +0200, Peter Maersk-Moller a écrit :<br>
> > Hi.<br>
> ><br>
> ><br>
> ><br>
> > Error preventsGit Master  gst-plugins-bad from compiling. The errors<br>
> > are:<br>
> ><br>
> > make[5]: Entering directory<br>
> > `/home/stream/Projects/GStreamer/Git/gst-plugins-bad/gst-libs/gst/gl'<br>
> >   CC       libgstgl_1.0_la-gstgldisplay.lo<br>
> > gstgldisplay.c: In function 'gst_gl_display_new':<br>
> > gstgldisplay.c:115:30: error: variable 'platform_choice' set but not<br>
> > used [-Werror=unused-but-set-variable]<br>
> >    const gchar *user_choice, *platform_choice;<br>
> >                               ^<br>
> > cc1: all warnings being treated as errors<br>
> > make[5]: *** [libgstgl_1.0_la-gstgldisplay.lo] Error 1<br>
> ><br>
> ><br>
> > If 'GST_GL_HAVE_PLATFORM_EGL' is not defined, then platform_choice is<br>
> > defined and set, but not used which with the configured compiling<br>
> > settings throws an error. If the setting of platform_choice is moved<br>
> > in under the<br>
> > '#if GST_GL_HAVE_PLATFORM_EGL' then the platform_choice is defined,<br>
> > but not used throwing an error. So that must be guarded as well by the<br>
> > 'GST_GL_HAVE_PLATFORM_EGL.<br>
><br>
><br>
> It's used always if debug traces is enabled. So I suppose you disabled<br>
> debug traces in your build and EGL is the only supported platform.<br>
><br>
>   if (!display) {<br>
>     /* subclass returned a NULL window */<br>
>     GST_WARNING ("Could not create display. user specified %s, creating<br>
> dummy",<br>
>         user_choice ? user_choice : "(null)");<br>
><br>
> This is a bit tricky/twisted to fix, please file a bug, <a href="http://bugs.gnome.org" target="_blank">bugs.gnome.org</a><br>
> produce GStreamer component gst-plugins-bad.<br>
<br>
</div></div>The problem is that platform_choice is not always used, not user_choice.<br>
Which is fixed by this commit now:<br>
<a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=5c960069e44d043bd60903046c905873fe63d93f" target="_blank">http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=5c960069e44d043bd60903046c905873fe63d93f</a><br>

<br>
It will still complain if you build without debugging enabled, but we<br>
don't support -Werror compilation without debugging as it's really just<br>
adding a lot of noise and #ifdefs to the code.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div>