diff mbox series

Trivial C++ PATCH to remove commented code

Message ID 20190211192748.GP3884@redhat.com
State New
Headers show
Series Trivial C++ PATCH to remove commented code | expand

Commit Message

Marek Polacek Feb. 11, 2019, 7:27 p.m. UTC
This I don't like.

Obvious, but ok?

2019-02-11  Marek Polacek  <polacek@redhat.com>

	* typeck2.c (digest_init_r): Remove commented code.

Comments

Jason Merrill Feb. 11, 2019, 7:43 p.m. UTC | #1
OK.

On 2/11/19 2:27 PM, Marek Polacek wrote:
> This I don't like.
> 
> Obvious, but ok?
> 
> 2019-02-11  Marek Polacek  <polacek@redhat.com>
> 
> 	* typeck2.c (digest_init_r): Remove commented code.
> 
> --- gcc/cp/typeck2.c
> +++ gcc/cp/typeck2.c
> @@ -1099,7 +1099,6 @@ digest_init_r (tree type, tree init, int nested, int flags,
>   
>         tree typ1 = TYPE_MAIN_VARIANT (TREE_TYPE (type));
>         if (char_type_p (typ1)
> -	  /*&& init */
>   	  && TREE_CODE (stripped_init) == STRING_CST)
>   	{
>   	  tree char_type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (init)));
>
diff mbox series

Patch

--- gcc/cp/typeck2.c
+++ gcc/cp/typeck2.c
@@ -1099,7 +1099,6 @@  digest_init_r (tree type, tree init, int nested, int flags,
 
       tree typ1 = TYPE_MAIN_VARIANT (TREE_TYPE (type));
       if (char_type_p (typ1)
-	  /*&& init */
 	  && TREE_CODE (stripped_init) == STRING_CST)
 	{
 	  tree char_type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (init)));