After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759728 - teletextdec: build error with clang
teletextdec: build error with clang
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other FreeBSD
: Normal normal
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-21 12:07 UTC by Koop Mast (kwm)
Modified: 2015-12-21 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Koop Mast (kwm) 2015-12-21 12:07:16 UTC
The teletextdec doesn't build with clang 3.4.1.

  CC       libgstteletextdec_la-gstteletextdec.lo
gstteletextdec.c:845:34: error: expression which evaluates to zero treated as a
      null pointer constant of type 'const gchar *' (aka 'const char *')
      [-Werror,-Wnon-literal-null-conversion]
  lines[lines_count] = g_strdup ('\0');
                                 ^~~~
gstteletextdec.c:948:28: error: expression which evaluates to zero treated as a
      null pointer constant of type 'const gchar *' (aka 'const char *')
      [-Werror,-Wnon-literal-null-conversion]
  colors[rows] = g_strdup ('\0');
                           ^~~~
2 errors generated.
Makefile:897: recipe for target 'libgstteletextdec_la-gstteletextdec.lo' failed
gmake: *** [libgstteletextdec_la-gstteletextdec.lo] Error 1
Comment 1 Sebastian Dröge (slomo) 2015-12-21 12:58:47 UTC
commit 11729cde80df6011f10f685d283405a5c918fa39
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Mon Dec 21 13:57:04 2015 +0100

    teletextdec: Use NULL instead of g_strdup('\0')
    
    Which is equivalent to g_strdup(NULL).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759728