aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2005-06-11 19:47:01 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2005-06-11 19:47:01 +0000
commitc6bdf92e07201b58176521b96de36150aa092ea6 (patch)
treeb5781e4c04c87da50e5c161b270d10cf6935ff95 /gcc/c-typeck.c
parent3932808120dd6d485e823aea73a3fd935d0d3a64 (diff)
downloadgcc-c6bdf92e07201b58176521b96de36150aa092ea6.zip
gcc-c6bdf92e07201b58176521b96de36150aa092ea6.tar.gz
gcc-c6bdf92e07201b58176521b96de36150aa092ea6.tar.bz2
c-typeck.c (convert_for_assignment): Avoid cheking OPT_Wc___compat, as it is always true.
* c-typeck.c (convert_for_assignment): Avoid cheking OPT_Wc___compat, as it is always true. From-SVN: r100843
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 918afa0..fe56cf4 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);