Permalink
Browse files

mark unused stuff with UNUSED()

  • Loading branch information...
1 parent c29badb commit bc6c413e610709338014379ac3c29f29b5432e85 @petdance petdance committed Mar 26, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/pmc/null.pmc
View
@@ -1,5 +1,5 @@
/*
-Copyright (C) 2001-2010, Parrot Foundation.
+Copyright (C) 2001-2012, Parrot Foundation.
=head1 NAME
@@ -45,20 +45,24 @@ Overrides the default to do nothing.
VTABLE void init() {
UNUSED(INTERP)
+ UNUSED(SELF)
}
VTABLE void *get_pointer() {
UNUSED(INTERP)
+ UNUSED(SELF)
return PMCNULL;
}
VTABLE void set_pointer(void *p) {
UNUSED(INTERP)
+ UNUSED(SELF)
PMCNULL = (PMC *)p;
}
VTABLE INTVAL does(STRING *what) {
UNUSED(INTERP)
+ UNUSED(SELF)
UNUSED(what)
/* XXX maybe a hack to get TGE running again */
return 0;
@@ -74,6 +78,8 @@ Returns true if value is also a null PMC, false otherwise.
*/
VTABLE INTVAL is_same(PMC *value) {
+ UNUSED(INTERP)
+ UNUSED(SELF)
return PMC_IS_NULL(value);
}
@@ -88,6 +94,7 @@ Gives a more informative message than the automaticaly generated version.
*/
VTABLE PMC *find_method(STRING *method_name) {
+ UNUSED(SELF)
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_NULL_REG_ACCESS,
"Null PMC access in find_method('%Ss')",
method_name);
@@ -99,7 +106,7 @@ Gives a more informative message than the automaticaly generated version.
=back
-=head2 Auxiliar functions
+=head2 Auxiliary functions
=over 4

0 comments on commit bc6c413

Please sign in to comment.