info: fix compiler warning with -Wpedantic and gcc 5
authorLukasz Forynski <lukasz.forynski@youview.com>
Mon, 23 Nov 2015 21:40:34 +0000 (21:40 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 24 Nov 2015 09:34:59 +0000 (09:34 +0000)
commit7e2aae7942f4232ee7a9e84c52d265b722890da3
tree538a05be2c06fa50f99176294ce4d9982f9592e4
parent8249c6db0e69f1bd3f80967c0bfd9b695e09557b
info: fix compiler warning with -Wpedantic and gcc 5

Gstreamer compiled with gcc 5.2 and -Wpedantic produces the
following warning:

'ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
  const char *s = __FUNCTION__;'

Since gcc 5 enables C99 by default, use __func__ if it's available
instead of the non-standard __FUNCTION__ (as suggested in [2]).

[1]: https://gcc.gnu.org/gcc-5/changes.html
[2]: https://gcc.gnu.org/gcc-5/porting_to.html

https://bugzilla.gnome.org/show_bug.cgi?id=758541
gst/gstinfo.h