4 ms·
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
by jordigh 9y ago
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 https://github.com/Tuplanolla/gcc-weverything
- jcelerier 9y ago> For example, it would include -Weffc++, right? Maybe, but where's the problem ? Just add -Wno-effc++ afterwards.
- loeg 9y agoYes, -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++ ;-).