Take middle-end stringop/array warnings out of -Wall?
Move middle-end stringop/array warnings out of `-Wall` and into `-Wextra`, adding a new `-Wmiddle-end` diagnostic group for finer control.
Eric Gallager agrees with a proposal to move middle-end stringop/array warnings from -Wall to -Wextra. The proposal includes creating a new diagnostic group, -Wmiddle-end, for these warnings. Gallager suggests waiting a release cycle before removing them from -Wextra to allow users to adjust.
- other
Agrees with moving the warnings to `-Wextra` and creating a `-Wmiddle-end` group, suggesting a delay before removing them from `-Wextra`.
“I agree with doing steps 1 through 3 listed here; I think that if 4 is to be done, it should wait a release until people have had time to adjust to the new -Wmiddle-end existing, though.”
In Details
This concerns the grouping of warnings emitted by GCC's middle-end, specifically those related to string and array operations. These warnings can be noisy and may not always indicate genuine errors, leading to debate about their inclusion in -Wall.
For Context
Compilers like GCC can emit warnings about potential problems in your code. These warnings can be enabled in groups; -Wall is a common group that enables many useful warnings. This discussion is about whether certain warnings related to string and array operations, which might be overly sensitive, should be moved out of the -Wall group and into a less frequently used group (-Wextra) to reduce noise for developers.