--- Comment #2 from pinskia at gcc dot gnu dot org 2009-01-09 20:25 ---
Just remove the const from the function definition and the warning will go
away. The warning is correct as the const here is applying to the pointer
type.
--
pinskia at gcc dot gnu dot org changed:
W
--- Comment #1 from pinskia at gmail dot com 2009-01-07 21:15 ---
Subject: Re: New: Incorrect warning/error when compiling with a typedef'ed
ptr return type
On Jan 7, 2009, at 12:44 PM, "gnu at bluedreamer dot com"
wrote:
> When a pointer to type is typedef'ed to a new type gcc in