misc: Fix various compiler warnings on MinGW
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 5 Feb 2019 12:48:48 +0000 (18:18 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 5 Feb 2019 13:15:54 +0000 (18:45 +0530)
commitfebfabb39f3eacee28021d8b216e4c5d2db08064
tree2e4252a3f2571dfe611a6bfad93a547aed4f2361
parentd3a2ed10feeb6da64b2f7aaa1a655d0a58419bf5
misc: Fix various compiler warnings on MinGW

gstharness.c: Use G_GSIZE_FORMAT instead of hard-coding %zu
error: unknown conversion type character 'z' in format [-Werror=format]

gst-inspect.c: GPid is void* on non-UNIX, and we only use it on UNIX
error: initialization makes pointer from integer without a cast [-Werror]

gstmeta.c: Use and then discard value
error: value computed is not used [-Werror=unused-value]

With this, gstreamer builds with -Werror on MinGW
libs/gst/check/gstharness.c
tests/check/gst/gstmeta.c
tools/gst-inspect.c