This touches three areas of code, removes unused variables and discards
return values from two functions with (void).
https://bugzilla.gnome.org/show_bug.cgi?id=645267
static inline gint
release_all_wakeup (GstPoll * set)
{
- gboolean result;
gint old;
while (TRUE) {
/* try to remove all pending control messages */
if (g_atomic_int_compare_and_exchange (&set->control_pending, old, 0)) {
/* we managed to remove all messages, read the control socket */
- result = RELEASE_EVENT (set);
+ (void) RELEASE_EVENT (set);
break;
}
}
\
GSequenceIter *iter; \
GstControlPoint *cp; \
- GstClockTime x_prev, x, x_next; \
+ GstClockTime x, x_next; \
g##vtype y_prev, y, y_next; \
\
/* Fill linear system of equations */ \
\
for (i = 1; i < n-1; i++) { \
/* Shuffle x and y values */ \
- x_prev = x; \
y_prev = y; \
x = x_next; \
y = y_next; \
/* if we need to touch the buffer (to bring it into memory), do so */
if (src->touch) {
- volatile guchar *p = GST_BUFFER_DATA (buf), c;
+ volatile guchar *p = GST_BUFFER_DATA (buf);
/* read first byte of each page */
for (i = 0; i < GST_BUFFER_SIZE (buf); i += src->pagesize)
- c = p[i];
+ (void) p[i];
}
/* we're done, return the buffer */