Skip to content
  • Matthew Waters's avatar
    build: fix debug output werror build with newer gcc · 8ce2460a
    Matthew Waters authored
    In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55,
                     from ../gst-libs/gst/tag/tag.h:25,
                     from ../gst-libs/gst/tag/gsttageditingprivate.h:24,
                     from ../gst-libs/gst/tag/gsttageditingprivate.c:23:
    ../gst-libs/gst/tag/gsttageditingprivate.c: In function ‘__exif_tag_capturing_white_balance_to_exif_value’:
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
      645 |     gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      646 |         (GObject *) (object), __VA_ARGS__);    \
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
     1068 | #define GST_WARNING(...)  GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__)
          |                           ^~~~~~~~~~~~~~~~~
    ../gst-libs/gst/tag/gsttageditingprivate.c:265:3: note: in expansion of macro ‘GST_WARNING’
      265 |   GST_WARNING ("Invalid white balance: %s", str);
          |   ^~~~~~~~~~~
    ../gst-libs/gst/tag/gsttageditingprivate.c:265:40: note: format string is defined here
      265 |   GST_WARNING ("Invalid white balance: %s", str);
          |                                        ^~
    
    In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55,
                     from ../gst-libs/gst/tag/tag.h:25,
                     from ../gst-libs/gst/tag/gstxmptag.c:39:
    ../gst-libs/gst/tag/gstxmptag.c: In function ‘deserialize_exif_gps_direction’:
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
      645 |     gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      646 |         (GObject *) (object), __VA_ARGS__);    \
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
     1068 | #define GST_WARNING(...)  GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__)
          |                           ^~~~~~~~~~~~~~~~~
    ../gst-libs/gst/tag/gstxmptag.c:818:5: note: in expansion of macro ‘GST_WARNING’
      818 |     GST_WARNING ("Missing %s tag", dirref_str);
          |     ^~~~~~~~~~~
    ../gst-libs/gst/tag/gstxmptag.c:818:27: note: format string is defined here
      818 |     GST_WARNING ("Missing %s tag", dirref_str);
          |                           ^~
    In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55,
                     from ../gst-libs/gst/tag/tag.h:25,
                     from ../gst-libs/gst/tag/gstxmptag.c:39:
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
      645 |     gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      646 |         (GObject *) (object), __VA_ARGS__);    \
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
     1068 | #define GST_WARNING(...)  GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__)
          |                           ^~~~~~~~~~~~~~~~~
    ../gst-libs/gst/tag/gstxmptag.c:814:5: note: in expansion of macro ‘GST_WARNING’
      814 |     GST_WARNING ("Missing %s tag", dir_str);
          |     ^~~~~~~~~~~
    ../gst-libs/gst/tag/gstxmptag.c:814:27: note: format string is defined here
      814 |     GST_WARNING ("Missing %s tag", dir_str);
          |                           ^~
    
    In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55,
                     from ../gst-libs/gst/gl/gstgl_fwd.h:24,
                     from ../gst-libs/gst/gl/gl.h:24,
                     from ../gst-libs/gst/gl/gstglsl.c:25:
    ../gst-libs/gst/gl/gstglsl.c: In function ‘gst_glsl_version_profile_from_string’:
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
      645 |     gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      646 |         (GObject *) (object), __VA_ARGS__);    \
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
     1068 | #define GST_WARNING(...)  GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__)
          |                           ^~~~~~~~~~~~~~~~~
    ../gst-libs/gst/gl/gstglsl.c:333:7: note: in expansion of macro ‘GST_WARNING’
      333 |       GST_WARNING ("Invalid preprocesser directive detected: %s", version_s);
          |       ^~~~~~~~~~~
    ../gst-libs/gst/gl/gstglsl.c:333:62: note: format string is defined here
      333 |       GST_WARNING ("Invalid preprocesser directive detected: %s", version_s);
          |                                                              ^~
    
    In function ‘print_stream_info’,
        inlined from ‘print_topology’ at ../tools/gst-discoverer.c:352:3:
    ../tools/gst-discoverer.c:316:3: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
      316 |   g_print ("%*s%s: %s\n", 2 * GPOINTER_TO_INT (depth), " ",
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      317 |       gst_discoverer_stream_info_get_stream_type_nick (info), desc);
          |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    8ce2460a