On Mon, 2 Jun 2025, Martin Uecker wrote: > According to the discussion in the bugzilla there seems to be > some consensus to activate the warning for -Wextra (I am also > looking into implementing the suggested improvements that may > make it suitable fo r-Wall). When making this change, I also > noticed that it was not working for -Wc++-compat due to a typo.
What are the cases of interest where this detects buggy code that isn't detected by -Wmaybe-uninitialized (also included in -Wextra)? Is this about -O0 compilations? If it's not working for -Wc++-compat I'd expect a testcase added (fails before the patch, passes after) that tests the warning with -Wc++-compat. -- Joseph S. Myers josmy...@redhat.com