Skip to content

Warning for delete call #2

Description

@paulocoutinhox

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions