From 5c2e37058b2199b4c6929940bc578794714a5694 Mon Sep 17 00:00:00 2001 From: kitone Date: Sat, 24 Jun 2017 01:29:23 +0200 Subject: [PATCH] compile with Wformat-security --- src/vp/gstplayer.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vp/gstplayer.cc b/src/vp/gstplayer.cc index 4af2ec94..039c61f5 100644 --- a/src/vp/gstplayer.cc +++ b/src/vp/gstplayer.cc @@ -417,8 +417,11 @@ Glib::RefPtr GstPlayer::gen_audio_element() } catch(std::runtime_error &ex) { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-security" se_debug_message(SE_DEBUG_VIDEO_PLAYER, "failed to gen_audio_element '%s'", ex.what()); GST_ELEMENT_WARNING(m_pipeline->gobj(), RESOURCE, NOT_FOUND, (ex.what()), (NULL)); +#pragma GCC diagnostic pop } // Return an NULL ptr return Glib::RefPtr(); @@ -507,8 +510,11 @@ Glib::RefPtr GstPlayer::gen_video_element() } catch(std::runtime_error &ex) { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-security" se_debug_message(SE_DEBUG_VIDEO_PLAYER, "failed to gen_video_element '%s'", ex.what()); GST_ELEMENT_ERROR(m_pipeline->gobj(), RESOURCE, NOT_FOUND, (ex.what()), (NULL)); +#pragma GCC diagnostic pop } // Return an NULL ptr return Glib::RefPtr();