This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77298] -Wnonnull-compare only emitted for code which is invoked


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
You can always use -fkeep-inline-functions to get the warning even for unused
inlines (by forcing them to be emitted). -Wnonnull-compare isn't the only
warning that isn't performed in the FEs early, think about -Wuninitialized and
-Wmaybe-uninitialized and many others.  Those have the same behavior here.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]