Permalink
Browse files

Mark UNUSED pmc parameters as such

Fixes -Wunused-parameter warnings
  • Loading branch information...
Reini Urban
Reini Urban committed Dec 1, 2012
1 parent 7ce401e commit 4a3fb26d3361d7e8c50c39f6738666114555ac20
Showing with 8 additions and 0 deletions.
  1. +2 −0 src/pmc/nqplexinfo.pmc
  2. +1 −0 src/pmc/nqplexpad.pmc
  3. +2 −0 src/pmc/qrpa.pmc
  4. +2 −0 src/pmc/sixmodelobject.pmc
  5. +1 −0 src/pmc/stable.pmc
View
@@ -92,6 +92,8 @@ pmclass NQPLexInfo
}
VTABLE void thaw(PMC *info) {
+ UNUSED(INTERP)
+ UNUSED(info)
/* Need custom mark. */
PObj_custom_mark_SET(SELF);
}
View
@@ -44,6 +44,7 @@ pmclass NQPLexPad
ATTR Hash *lexinfo_hash;
VTABLE void init() {
+ UNUSED(SELF);
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_INVALID_OPERATION,
"Cannot create a NQPLexPad PMC without an initializer");
}
View
@@ -147,12 +147,14 @@ Resizes the array to C<n> elements.
VTABLE INTVAL elements() {
+ UNUSED(INTERP);
Parrot_QRPA_attributes * const qrpa = PARROT_QRPA(SELF);
return qrpa->elems;
}
VTABLE INTVAL exists_keyed_int(INTVAL pos) {
+ UNUSED(INTERP);
Parrot_QRPA_attributes * const qrpa = PARROT_QRPA(SELF);
PMC *value;
@@ -143,6 +143,7 @@ pmclass SixModelObject manual_attrs dynpmc group nqp {
/* XXX Hack for Parrot issue which needs invokable on stuff. */
VTABLE INTVAL does(STRING *what) {
+ UNUSED(SELF)
return Parrot_str_equal(interp, what, CONST_STRING(interp, "invokable"));
}
@@ -154,6 +155,7 @@ pmclass SixModelObject manual_attrs dynpmc group nqp {
}
VTABLE PMC *clone() {
+ UNUSED(SELF)
Parrot_ex_throw_from_c_args(interp, NULL, 1,
"SixModelObject does not support the clone v-table; consider using the repr_clone op instead");
}
View
@@ -23,6 +23,7 @@ pmclass STable manual_attrs dynpmc group nqp {
* the supplied object. Leaves the rest to be filled out. Also
* flags PMC as needing custom mark and destroy. */
VTABLE void init_pmc(PMC *HOW) {
+ UNUSED(INTERP)
/* Put underlying struct in place. */
STable *st = mem_allocate_zeroed_typed(STable);
st->type_cache_id = get_next_type_cache_id();

0 comments on commit 4a3fb26

Please sign in to comment.