Commit 07fe1cd6 authored by Alexander Alekhin's avatar Alexander Alekhin

videoio: eliminate build warnings (clang)

parent 23700792
......@@ -97,6 +97,11 @@ static void handleMessage(GstElement * pipeline);
namespace {
#if defined __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-function"
#endif
template<typename T> static inline void GSafePtr_addref(T* ptr)
{
if (ptr)
......@@ -125,6 +130,10 @@ template<> inline void GSafePtr_release<GstEncodingContainerProfile>(GstEncoding
template<> inline void GSafePtr_addref<char>(char* pPtr); // declaration only. not defined. should not be used
template<> inline void GSafePtr_release<char>(char** pPtr) { if (pPtr) { g_free(*pPtr); *pPtr = NULL; } }
#if defined __clang__
# pragma clang diagnostic pop
#endif
template <typename T>
class GSafePtr
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment