https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003

--- Comment #22 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #21)
> Also, how many warnings for this type of code (or other) do you see?  If
> there are too many it might be worth revisiting the decision.

I see it only in 4 packages (out of ~3300) we have in a staging project:

inkscape.log:[  133s] ../src/extension/system.cpp:177:78: error: 'this' pointer
is null [-Werror=nonnull]
inkscape.log:[  133s] ../src/extension/system.cpp:387:79: error: 'this' pointer
is null [-Werror=nonnull]
libyui.log:[  116s]
/home/abuild/rpmbuild/BUILD/libyui-3.12.2/examples/ManyWidgets.cc:133:84:
error: 'this' pointer is null [-Werror=nonnull]
libyui.log:[  116s]
/home/abuild/rpmbuild/BUILD/libyui-3.12.2/examples/ManyWidgets.cc:136:66:
error: 'this' pointer is null [-Werror=nonnull]
libyui-ncurses-pkg.log:[   39s]
/home/abuild/rpmbuild/BUILD/libyui-ncurses-pkg-2.50.10/src/NCPackageSelector.cc:872:68:
error: 'this' pointer is null [-Werror=nonnull]
libyui-ncurses-pkg.log:[   39s]
/home/abuild/rpmbuild/BUILD/libyui-ncurses-pkg-2.50.10/src/NCPackageSelector.cc:1032:68:
error: 'this' pointer is null [-Werror=nonnull]
libyui-ncurses-pkg.log:[   39s]
/home/abuild/rpmbuild/BUILD/libyui-ncurses-pkg-2.50.10/src/NCPackageSelector.cc:1149:68:
error: 'this' pointer is null [-Werror=nonnull]
llvm11.log:[  226s] ../lib/Analysis/LazyValueInfo.cpp:1516:45: warning: 'this'
pointer is null [-Wnonnull]
llvm11.log:[  226s] ../lib/Analysis/LazyValueInfo.cpp:1517:41: warning: 'this'
pointer is null [-Wnonnull]

Reply via email to