News for hackers. Stuff that matters.
Re:Useful GCC warning options not enabled by -Wall -Wextra by craftyguy on Wednesday October 04, 2017 @11:42AM (#15401278)
that's a terrible excuse for not enabling them in -Wall. Is there a -Wreally-all?
Re:Useful GCC warning options not enabled by -Wall -Wextra by loeg on Wednesday October 04, 2017 @11:47AM (#15401332)
Clang has -Weverything. GCC doesn't: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66293
Re:Useful GCC warning options not enabled by -Wall -Wextra by jordigh on Wednesday October 04, 2017 @12:31PM (#15401690)
It looks like -Weverything for gcc would make a lot of code not compile (along with -Werror). For example, it would include -Weffc++, right? Those are warnings if your code just doesn't obey one guy's now-outdated opinions of what C++ should look like.

That's what this says at the bottom:

https://github.com/Tuplanolla/gcc-weverything

Re:Useful GCC warning options not enabled by -Wall -Wextra by jcelerier on Wednesday October 04, 2017 @12:39PM (#15401746)
> For example, it would include -Weffc++, right?

Maybe, but where's the problem ? Just add -Wno-effc++ afterwards.

Re:Useful GCC warning options not enabled by -Wall -Wextra by loeg on Wednesday October 04, 2017 @01:29PM (#15402232)
Yes, -Weverything + -Werror is often a silly combination. That isn't a GCC-specific problem, though. Clang with both flags will fail to compile quite a lot of code, too.

As the other reply points out, you can just use -Wno-effc++ on top of -Weverything. You could also avoid that particular problem by not using C++ ;-).

Re:Useful GCC warning options not enabled by -Wall -Wextra by kllrnohj on Wednesday October 04, 2017 @03:45PM (#15403850)
Note that Clang recommends you don't use -Weverything because it contains warnings that are in development or have a known high false-positive rate.
Re:Useful GCC warning options not enabled by -Wall -Wextra by klodolph on Wednesday October 04, 2017 @12:03PM (#15401467)
The actual reason why -Wall doesn't include more warnings is because too many people rely on the fact that -Wall includes warnings for questionable code that is easy to avoid. It's a bad name, but it's not being changed any time soon.