bitwriter: fix compiler warning
authorTim-Philipp Müller <tim@centricular.com>
Sat, 25 Aug 2018 22:16:51 +0000 (00:16 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 26 Aug 2018 09:45:58 +0000 (11:45 +0200)
Don't return a value from a function that doesn't
return a value using the returned value from a
function that also doesn't return a value.

gstbitwriter.h(265): warning C4098: 'gst_bit_writer_align_bytes_unchecked': 'void' function returning a value

libs/gst/base/gstbitwriter.h

index c2b4a70..d837b81 100644 (file)
@@ -262,7 +262,7 @@ gst_bit_writer_align_bytes_unchecked (GstBitWriter * bitwriter,
   bit_left = 8 - bit_offset;
   if (trailing_bit)
     value = _gst_bit_writer_bit_filling_mask[bit_left];
-  return gst_bit_writer_put_bits_uint8_unchecked (bitwriter, value, bit_left);
+  gst_bit_writer_put_bits_uint8_unchecked (bitwriter, value, bit_left);
 }
 
 #define __GST_BIT_WRITER_WRITE_BITS_INLINE(bits) \