diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2007-08-11 13:32:52 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2007-08-11 13:32:52 +0000 |
commit | ea7c218e4605228d20539d8f6af4875623bb3127 (patch) | |
tree | a07145bc31b4813ce8c0b78fb87d7d8b79ddb986 /gcc | |
parent | 01cda232775a04b27e7b79f5b0e98a474e532dd7 (diff) | |
download | gcc-ea7c218e4605228d20539d8f6af4875623bb3127.zip gcc-ea7c218e4605228d20539d8f6af4875623bb3127.tar.gz gcc-ea7c218e4605228d20539d8f6af4875623bb3127.tar.bz2 |
c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
* c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
From-SVN: r127357
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-typeck.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc72017..d949292 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings. + 2007-08-10 Adam Nemet <anemet@caviumnetworks.com> * config/mips/predicates.md (const_call_insn_operand): Invoke diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 7e6da0f..516314e 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -3557,12 +3557,12 @@ build_c_cast (tree type, tree expr) && TREE_CODE (in_otype) == POINTER_TYPE); if (added) - warning (0, "cast adds new qualifiers to function type"); + warning (OPT_Wcast_qual, "cast adds new qualifiers to function type"); if (discarded) /* There are qualifiers present in IN_OTYPE that are not present in IN_TYPE. */ - warning (0, "cast discards qualifiers from pointer target type"); + warning (OPT_Wcast_qual, "cast discards qualifiers from pointer target type"); } /* Warn about possible alignment problems. */ |