summaryrefslogtreecommitdiffstats
path: root/sys/ximage
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-12-26 16:03:57 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-12-26 16:03:57 +0000
commitbcdeaa639b88bafd2d260ec262a2a38a19dfbeb6 (patch)
tree1515afc26b24b1905db793abeec85992beb1cccf /sys/ximage
parent427ab08ae2095effe48bfd25b7a411222487dd7b (diff)
Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() macro in GLib-2.15.x (i...
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_loop): * gst/wavparse/gstwavparse.c: (gst_wavparse_chain): * sys/ximage/gstximagesrc.c: (composite_pixel): Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() macro in GLib-2.15.x (it's not really nice to abort in any case). Fixes #505745.
Diffstat (limited to 'sys/ximage')
-rw-r--r--sys/ximage/gstximagesrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c
index 115d271b..c5ed9c26 100644
--- a/sys/ximage/gstximagesrc.c
+++ b/sys/ximage/gstximagesrc.c
@@ -280,7 +280,7 @@ composite_pixel (GstXContext * xcontext, guchar * dest, guchar * src)
break;
default:
/* Should not reach here */
- g_assert_not_reached ();
+ g_return_if_reached ();
}
/* possible optimisation: