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

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Thu Jun 26 18:36:00 GMT 2008


From: "Nathan Froyd" <froydnj@codesourcery.com>

> 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

Okay, I'll take it out.  Wish GCC would warn about these assigned but 
otherwise unused variables!




More information about the Gcc-patches mailing list