diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-06-11 19:47:01 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-06-11 19:47:01 +0000 |
commit | bed881443d58b7987eada2c79af72af2295755cb (patch) | |
tree | b5781e4c04c87da50e5c161b270d10cf6935ff95 /gcc/c-typeck.c | |
parent | e0018ae037719d684934f656bc601fa1af5cca12 (diff) |
* c-typeck.c (convert_for_assignment): Avoid cheking
OPT_Wc___compat, as it is always true.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@100843 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 918afa0464f..fe56cf4014a 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -3787,8 +3787,7 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype, int *p = NULL; where NULL is typically defined in C to be '(void *) 0'. */ - if (OPT_Wc___compat && VOID_TYPE_P (ttr) && rhs != null_pointer_node - && !VOID_TYPE_P (ttl)) + if (VOID_TYPE_P (ttr) && rhs != null_pointer_node && !VOID_TYPE_P (ttl)) warning (OPT_Wc___compat, "request for implicit conversion from " "%qT to %qT not permitted in C++", rhstype, type); |