[Xorg-driver-geode] [PATCH] Replace xalloc/xrealloc/xfree/xcalloc with malloc/realloc/free/calloc
Huang, FrankR
FrankR.Huang at amd.com
Tue Aug 31 19:50:47 PDT 2010
xalloc/xrealloc/xfree/xcalloc is deprecated in new Xserver 1.9.
Log:
make[1]: Entering directory `/tmp/xserver-xorg-video-geode-2.11.9'
Making all in src
make[2]: Entering directory `/tmp/xserver-xorg-video-geode-2.11.9/src'
CC geode_driver.lo
CC geode_common.lo
CC geode_dcon.lo
geode_dcon.c: In function 'DCONDPMSSet':
geode_dcon.c:83: warning: ignoring return value of 'write', declared with attribute warn_unused_result
CC geode_ddc.lo
CC geode_msr.lo
CC gx_driver.lo
gx_driver.c: In function 'GXPreInit':
gx_driver.c:450: warning: 'Xcalloc' is deprecated (declared at /usr/include/xorg/os.h:225)
gx_driver.c: In function 'GXCloseScreen':
gx_driver.c:963: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234)
gx_driver.c:964: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234)
gx_driver.c:969: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234)
gx_driver.c:975: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234)
....
In previous X server, no warnings are reported. So it is fine with your X server I think.
Frank
> -----Original Message-----
> From: mjd at afork.com [mailto:mjd at afork.com] On Behalf Of Mitch Davis
> Sent: 2010年9月1日 10:42
> To: Huang, FrankR
> Cc: Geode Mailing List
> Subject: Re: [Xorg-driver-geode] [PATCH] Replace
> xalloc/xrealloc/xfree/xcalloc with malloc/realloc/free/calloc
>
> On Wed, Sep 1, 2010 at 12:30 PM, Huang, FrankR <FrankR.Huang at amd.com>
> wrote:
> > From: Frank Huang <frankr.huang at amd.com>
> >
> > * Replace the deprecated functions with new ones
> > Refer to "/xserver/include/os.h"
>
> Looks fine to me. Any compiler warnings?
>
> Mitch.
More information about the Xorg-driver-geode
mailing list