[x265] MinGW/GCC 9.2: multistatement macros warning in encoder.cpp

Mario *LigH* Rohkrämer contact at ligh.de
Wed Nov 27 13:44:32 CET 2019


[ 80%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.obj
In file included from E:/MABS/build/x265-hg/source/encoder/encoder.cpp:27:
E:/MABS/build/x265-hg/source/encoder/encoder.cpp: In member function 
'void x265::Encoder::destroy()':
E:/MABS/build/x265-hg/source/common/common.h:222:37: warning: macro 
expands to multiple statements [-Wmultistatement-macros]
   222 | #define X265_FREE_ZERO(ptr)         x265_free(ptr); (ptr) = NULL
       |                                     ^~~~~~~~~
E:/MABS/build/x265-hg/source/encoder/encoder.cpp:882:12: note: in 
expansion of macro 'X265_FREE_ZERO'
   882 |            X265_FREE_ZERO(m_edgePic);
       |            ^~~~~~~~~~~~~~
E:/MABS/build/x265-hg/source/encoder/encoder.cpp:881:9: note: some parts 
of macro expansion are not guarded by this 'if' clause
   881 |         if(m_edgePic != NULL)
       |         ^~

-- 

Fun and success!

Mario *LigH* Rohkrämer
maito:contact at ligh.de


More information about the x265-devel mailing list