[Gc] Gentoo QA Notice: mark_rts.c:365: warning: function
returns address of local variable
hans.boehm at hp.com
Thu Aug 11 23:18:43 PDT 2011
If you look at the corresponding source, you'll see that this is clearly intentional. I don't know if there is a way to suppress the warning. I think there is a gcc intrinsic to retrieve the stack pointer, which could be used when compiling with gcc. But I'm not sure that uglifying the code is a good way to deal with such issues.
As an immediate fix, there is presumably a way to tell the build NOT to treat warnings as errors?
> -----Original Message-----
> From: gc-bounces at linux.hpl.hp.com [mailto:gc-bounces at linux.hpl.hp.com]
> On Behalf Of Dan Wallis
> Sent: Thursday, August 11, 2011 8:08 PM
> To: gc at linux.hpl.hp.com
> Subject: [Gc] Gentoo QA Notice: mark_rts.c:365: warning: function
> returns address of local variable
> While installing dev-libs/boehm-gc-7.1-r1 on my Gentoo Linux system, I
> received the following notice:
> * QA Notice: Package has poor programming practices which may compile
> * fine but exhibit random runtime failures.
> * mark_rts.c:365: warning: function returns address of local variable
> * Please do not file a Gentoo bug and instead report the above QA
> * issues directly to the upstream developers of this software.
> * Homepage: https://www.hpl.hp.com/personal/Hans_Boehm/gc/
> * ERROR: dev-libs/boehm-gc-7.1-r1 failed:
> * install aborted due to poor programming practices shown above
> I had a look through the archive for this list and didn't see this
> being raised before. I'm attaching a full build log, and some system
> information, which may help track down the problem.
More information about the Gc