c-typeck.c (convert_for_assignment): Avoid cheking OPT_Wc___compat, as it is always...
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sat, 11 Jun 2005 19:47:01 +0000 (19:47 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sat, 11 Jun 2005 19:47:01 +0000 (19:47 +0000)
        * c-typeck.c (convert_for_assignment): Avoid cheking
        OPT_Wc___compat, as it is always true.

From-SVN: r100843

gcc/ChangeLog
gcc/c-typeck.c

index 982504b59828c2d216cfe86c0e4272a41d381edb..01d52497b58a56a2618b0aa9036cd443ebf07656 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * c-typeck.c (convert_for_assignment): Avoid checking
+       OPT_Wc___compat, as it is always true.
+
 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
index 918afa0464f7dd522a8dc394edd6fe0569e5b2c3..fe56cf4014af1105c3763e78365cafb37c7c08e4 100644 (file)
@@ -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);