GCC 8.0.1 compile warning

Issue #395 new
shinchiro created an issue
/mnt/d/MSYS/x265_compile/x265/source/common/frame.cpp: In constructor 'x265::Frame::Frame()':
/mnt/d/MSYS/x265_compile/x265/source/common/frame.cpp:47:42: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct x265::Lowres'; use assignment or value-initialization instead [-Wclass-memaccess]
     memset(&m_lowres, 0, sizeof(m_lowres));
                                          ^
In file included from /mnt/d/MSYS/x265_compile/x265/source/common/frame.h:29,
                 from /mnt/d/MSYS/x265_compile/x265/source/common/frame.cpp:26:
/mnt/d/MSYS/x265_compile/x265/source/common/lowres.h:107:8: note: 'struct x265::Lowres' declared here
 struct Lowres : public ReferencePlanes

Comments (0)

  1. Log in to comment