This is the mail archive of the gcc@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] | |
On 10 Jan 2007 05:47:19 +0100, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:Chris Pickett <chris.pickett@mail.mcgill.ca> writes: I assume the -Wno-xxx that are set by default would be moved to the "default" section?
No. Warnings that are not active by default are obviously disabled, there is no need to mention them. Actually, we should be more specific saying that using Wno-* disables a warning no matter what you put on the commandline, so, strictly speaking, it is false that warnings that are not enabled by default are equivalent to -Wno-*
| # A <-- B && C option A is implied by options B and C together
Do you have an example of this?
| # A --> B option A implies option B | # A ==> B option A enables option B
What is the difference between "implies" and "enables" ?
Implies: turning on A turns on B. Enables: turning on A means that turning on B will have an effect.
| default --> -Wimport -Wdiv-by-zero -Wendif-labels -Wattributes -Wmultichar
| -Wnormalized=nfc -Wdeprecated-declarations -Winvalid-offset-of
| -Wint-to-pointer-cast -Wpointer-to-int-cast
plus others that are not controlled by named flags.
Should all warnings be controlled by some or other flag?
| -Wimplicit <-- -Wall # redundant implication
Hmm, I don't understand what you mean here.
Me neither. Also, you missed -Werror-implicit-function-declaration which is a weird and useless option. I have to investigate its history.
-Wimplicit-int <-- -Wall -Wimplicit-function-declaration <-- -Wall -Werror-implicit-function-declaration -Wimplicit --> -Wimplicit-int -Wimplicit-function-declaration -Wimplicit <-- -Wall # redundant implication
Cheers, Chris
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |