[svn:parrot] r43351 - branches/pmc_freeze_cleanup/include/parrot
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Thu Dec 31 22:51:49 UTC 2009
Author: plobsing
Date: Thu Dec 31 22:51:49 2009
New Revision: 43351
URL: https://trac.parrot.org/parrot/changeset/43351
Log:
silence compiler warnings about switches in VISIT_PMC and VISIT_PMC_ATTR
Modified:
branches/pmc_freeze_cleanup/include/parrot/pmc_freeze.h
Modified: branches/pmc_freeze_cleanup/include/parrot/pmc_freeze.h
==============================================================================
--- branches/pmc_freeze_cleanup/include/parrot/pmc_freeze.h Thu Dec 31 22:22:12 2009 (r43350)
+++ branches/pmc_freeze_cleanup/include/parrot/pmc_freeze.h Thu Dec 31 22:51:49 2009 (r43351)
@@ -105,6 +105,8 @@
(pmc) = VTABLE_shift_pmc((interp), (visit)); \
VTABLE_push_pmc((interp), (visit), (pmc)); \
break; \
+ default: \
+ do_panic((interp), "Bad VISIT_HOW in VISIT_PMC", __FILE__, __LINE__); \
} \
} \
} while (0)
@@ -134,6 +136,8 @@
GETATTR_ ## pmclass ## _ ## attr_name((interp), (self), _visit_pmc_attr); \
VTABLE_push_pmc((interp), (visit), _visit_pmc_attr); \
break; \
+ default: \
+ do_panic((interp), "Bad VISIT_HOW in VISIT_PMC_ATTR", __FILE__, __LINE__); \
} \
} \
} while (0)
More information about the parrot-commits
mailing list