doc: -Wdelete-non-virtual-dtor supersedes -Wnon-virtual-dtor
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Nov 2022 10:01:06 +0000 (10:01 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 23 Nov 2022 15:45:45 +0000 (15:45 +0000)
commit51f28e3aaf8b50554e7d356c8117399e63132323
treecdaf722a123b62d29efe6e35b60301925ad9a6f0
parentd601708870ad8dc3ef935e440bf03394891d42e2
doc: -Wdelete-non-virtual-dtor supersedes -Wnon-virtual-dtor

The newer -Wdelete-non-virtual-dtor has no false positives and fewer
bugs. There is very little reason to use -Wnon-virtual-dtor instead.

gcc/ChangeLog:

* doc/invoke.texi (C++ Dialect Options): Recommend using
-Wdelete-non-virtual-dtor instead of -Wnon-virtual-dtor.
gcc/doc/invoke.texi