webview icon indicating copy to clipboard operation
webview copied to clipboard

Warning for delete call

Open paulocoutinhox opened this issue 3 years ago • 0 comments

What OS are you using (uname -a, or Windows version)?

macos bigsur

What programming language are you using (C/C++/Go/Rust)?

clang 13 xcode 13 c++

What did you expect to see and what you saw instead?

compile without warnings

Problem

webview.h:541:3: warning: delete called on non-final 'webview::webview' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
  delete static_cast<webview::webview *>(w);
  ^
1 warning generated.

paulocoutinhox avatar Oct 02 '21 06:10 paulocoutinhox