[Patch, Darwin] Suppress build warnings about struct cl_decoded_option.

Paolo Bonzini bonzini@gnu.org
Fri Dec 17 12:34:00 GMT 2010


On 12/17/2010 11:22 AM, IainS wrote:
> Index: gcc/config/darwin.h
> ===================================================================
> --- gcc/config/darwin.h (revision 167881)
> +++ gcc/config/darwin.h (working copy)
> @@ -963,10 +968,10 @@ __enable_execute_stack (void *addr)
>
> #define TARGET_HAS_TARGETCM 1
>
> -extern void darwin_driver_init (unsigned int *decoded_options_count,
> - struct cl_decoded_option **decoded_options);

Can't you just add a "struct cl_decoded_option;" forward reference 
before the extern?

Paolo



More information about the Gcc-patches mailing list