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]: Address const warnings in gimple.h


On Wed, Jun 9, 2010 at 6:51 AM, Kai Tietz <ktietz70@googlemail.com> wrote:

> 2010-06-09
>
> ? ? ? ?* system.h (helper_const_non_const_cast): New inline for
> ? ? ? ?gcc version <= 4.0.
> ? ? ? ?(CONST_CAST2): For gcc version <= 4.0 use
> ? ? ? ?new helper to do const/non-const casting.

> +static inline
> +char *helper_const_non_const_cast (const char *p)

This should be

static inline char*
helper_const_non_const_cast (const char *p)

As far as I can see there is no reason to restrict this static inline
code to only be used with gcc.  But I don't really care.  Presumably
any resulting warnings won't prevent building with a non-gcc compiler.

This is OK with the above change.

Thanks.

Ian


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