Skip to content

Commit

Permalink
compile with Wformat-security
Browse files Browse the repository at this point in the history
  • Loading branch information
kitone committed Jun 23, 2017
1 parent d2b4762 commit 5c2e370
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vp/gstplayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,11 @@ Glib::RefPtr<Gst::Element> 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<Gst::Element>();
Expand Down Expand Up @@ -507,8 +510,11 @@ Glib::RefPtr<Gst::Element> 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<Gst::Element>();
Expand Down

0 comments on commit 5c2e370

Please sign in to comment.