GNOME Bugzilla – Bug 759728
teletextdec: build error with clang
Last modified: 2015-12-21 12:58:47 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
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