[PATCH] document -Wclass-memaccess suppression by casting (PR 81327)
Jakub Jelinek
jakub@redhat.com
Sun Jan 14 10:40:00 GMT 2018
On Sat, Jan 13, 2018 at 04:14:38PM -0700, Martin Sebor wrote:
> -The @option{-Wclass-memaccess} option is enabled by @option{-Wall}.
> +The @option{-Wclass-memaccess} option is enabled by @option{-Wall}. Casting
Perhaps "Explicitly casting" instead? The implicit cast doesn't suppress it
and occurs whenever there isn't an explicit cast.
> +the pointer to the class object to @code{void *} or to a type that can be
> +safely accessed by the raw memory function suppresses the warning.
>
> @item -Wnon-virtual-dtor @r{(C++ and Objective-C++ only)}
> @opindex Wnon-virtual-dtor
Jakub
More information about the Gcc-patches
mailing list