polevpn / webview

a cross-platform webview library for golang and c/c++
MIT License
37 stars 11 forks source link

Warning for delete call #2

Open paulocoutinhox opened 3 years ago

paulocoutinhox commented 3 years ago

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.