develooper Front page | perl.ponie.dev | Postings from July 2005

Re: Ponie development snapshot 4

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
July 20, 2005 14:57
Subject:
Re: Ponie development snapshot 4
Message ID:
Pine.SOC.4.62.0507201330390.8050@maxwell.phys.lafayette.edu
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}

I see three basic choices:
    1.  Turn the error off with the compiler flag 
        -erroff=E_ARG_INCOMPATIBLE_WITH_ARG (though the warning is 
        occasionally helpful)
    2.  Fix up the macros to do the cast (though this could hide real 
        errors)
    3.  Fix up the source in those 2000 spots to do the correct cast on a 
        case-by-case basis.

Any opinions?

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About