[Bug 758541] gstinfo: Fix ISO non-standard predefined identifier warning for __FUNCTION__ when compiled with gcc 5 -Wpedantic

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 24 01:40:06 PST 2015


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

Tim-Philipp Müller <t.i.m at zen.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.7.1

--- Comment #7 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Thanks for the patch, pushed (reworded the commit message a little to point out
the -Wpedantic aspect of it):

commit 7e2aae7942f4232ee7a9e84c52d265b722890da3
Author: Lukasz Forynski <lukasz.forynski at youview.com>
Date:   Mon Nov 23 21:40:34 2015 +0000

    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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list