Commit ea7c218e by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 01cda232
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> 2007-08-10 Adam Nemet <anemet@caviumnetworks.com>
* config/mips/predicates.md (const_call_insn_operand): Invoke * config/mips/predicates.md (const_call_insn_operand): Invoke
......
...@@ -3557,12 +3557,12 @@ build_c_cast (tree type, tree expr) ...@@ -3557,12 +3557,12 @@ build_c_cast (tree type, tree expr)
&& TREE_CODE (in_otype) == POINTER_TYPE); && TREE_CODE (in_otype) == POINTER_TYPE);
if (added) if (added)
warning (0, "cast adds new qualifiers to function type"); warning (OPT_Wcast_qual, "cast adds new qualifiers to function type");
if (discarded) if (discarded)
/* There are qualifiers present in IN_OTYPE that are not /* There are qualifiers present in IN_OTYPE that are not
present in IN_TYPE. */ 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. */ /* Warn about possible alignment problems. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment