This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Fix a few remaining -Wc++-compat warnings


On Thu, Jun 26, 2008 at 11:29:59AM -0400, Kaveh R. GHAZI wrote:
> --- orig/egcc-SVN20080626/gcc/alloc-pool.c	2008-03-14 00:39:19.000000000 +0100
> +++ egcc-SVN20080626/gcc/alloc-pool.c	2008-06-26 09:47:46.000000000 +0200
> @@ -145,7 +145,7 @@ create_alloc_pool (const char *name, siz
>    pool_size = sizeof (struct alloc_pool_def);

This assignment and variable appear to be unnecessary now.

>    /* and allocate that much memory.  */
> -  pool = xmalloc (pool_size);
> +  pool = XNEW (struct alloc_pool_def);

-Nathan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]