Re: Ponie development snapshot 4

[email protected] (Andy Dougherty) Thu, 21 Jul 2005 10:09:34 -0400 (EDT)
Newsgroups perl.ponie.dev
Message-ID <[email protected]>
On Wed, 20 Jul 2005, Andy Dougherty wrote:

> Poine now compiles ok (well, there's one problem with multiple perls in my 
> path I haven't sorted out yet, but that's another story) but I get nearly 
> 2000 warnings of the form:
> 
> "./perl5cargo_cult_static_get.c", line 74: warning: argument #1 is incompatible with prototype:
> 	prototype: pointer to const struct Ponie_Dummy_PMC {char something} : "/home/doughera/src/ponie/ponie/perl/proto.h", line 420
> 	argument : pointer to struct PMC {struct pobj_t {..} obj, pointer to struct _vtable {..} vtable, pointer to struct PMC_EXT {..} pmc_ext}
> 
> or
> 
> "perl5cargo_cult.pmc", line 26: warning: argument #2 is incompatible with prototype:
> 	prototype: pointer to struct PMC {struct pobj_t {..} obj, pointer to struct _vtable {..} vtable, pointer to struct PMC_EXT {..} pmc_ext} : "/home/doughera/src/ponie/ponie/parrot/include/parrot/extend.h", line 84
> 	argument : pointer to struct Ponie_Dummy_PMC {char something}

And the compiler seems much happier with the following patch.  I'll test 
more carefully to make sure it doesn't raise a hackle somewhere else.

Index: perl/sv.h
===================================================================
--- perl/sv.h	(revision 331)
+++ perl/sv.h	(working copy)
@@ -1501,5 +1501,5 @@
 #endif
 
 #ifndef MUMBLE
-#define MUMBLE(p) p
+#define MUMBLE(p) ((void *)p)
 #endif

-- 
    Andy Dougherty		[email protected]