• 3343阅读
  • 0回复

静态编译Qt5.4.1时发现的几个warning message,是否有问题,请高手看看! [复制链接]

上一主题 下一主题
离线johnyork
 

只看楼主 倒序阅读 楼主  发表于: 2015-03-01
  1. player/directshowiosource.cpp: In member function 'virtual ULONG DirectShowIOSource::Release()':
  2. player/directshowiosource.cpp:152:16: warning: deleting object of polymorphic class type 'DirectShowIOSource' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
  3.          delete this;
  4.                 ^
  5. player/directshowmediatypelist.cpp: In member function 'virtual ULONG DirectShowMediaTypeEnum::Release()':
  6. player/directshowmediatypelist.cpp:110:16: warning: deleting object of polymorphic class type 'DirectShowMediaTypeEnum' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
  7.          delete this;
  8.                 ^
  9. player/directshowpinenum.cpp: In member function 'virtual ULONG DirectShowPinEnum::Release()':
  10. player/directshowpinenum.cpp:78:16: warning: deleting object of polymorphic class type 'DirectShowPinEnum' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
  11.          delete this;
  12.                 ^
编译环境是MSYS2 - 64,编译器使用的MinGW64-w32-4.9.2。
这几个告警信息看着貌似是比较严重的,但我刚接触Qt没多久,无法自己分析,所以贴出来请高手参谋参谋。

快速回复
限100 字节
 
上一个 下一个