From bcdafdcb420ec5a927187c5efe45561bceec8d09 Mon Sep 17 00:00:00 2001 From: gdr Date: Sat, 11 Jun 2005 19:47:01 +0000 Subject: [PATCH] * c-typeck.c (convert_for_assignment): Avoid cheking OPT_Wc___compat, as it is always true. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100843 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/c-typeck.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 982504b..01d5249 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-11 Gabriel Dos Reis + + * c-typeck.c (convert_for_assignment): Avoid checking + OPT_Wc___compat, as it is always true. + 2005-06-11 David Edelsohn * config/rs6000/rs6000.md (eq_compare): Restrict to Pmode. 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); -- 2.7.4