mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Merge pull request #14975 from alalek:clang_suppress_warnings
This commit is contained in:
commit
fee87c5fdb
@ -97,6 +97,11 @@ static void handleMessage(GstElement * pipeline);
|
|||||||
|
|
||||||
namespace {
|
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)
|
template<typename T> static inline void GSafePtr_addref(T* ptr)
|
||||||
{
|
{
|
||||||
if (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_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; } }
|
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>
|
template <typename T>
|
||||||
class GSafePtr
|
class GSafePtr
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user