Skip to content
This repository
Browse code

mark unused stuff with UNUSED()

  • Loading branch information...
commit bc6c413e610709338014379ac3c29f29b5432e85 1 parent c29badb
Andy Lester authored March 25, 2012

Showing 1 changed file with 9 additions and 2 deletions. Show diff stats Hide diff stats

  1. 11  src/pmc/null.pmc
11  src/pmc/null.pmc
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2  
-Copyright (C) 2001-2010, Parrot Foundation.
  2
+Copyright (C) 2001-2012, Parrot Foundation.
3 3
 
4 4
 =head1 NAME
5 5
 
@@ -45,20 +45,24 @@ Overrides the default to do nothing.
45 45
 
46 46
     VTABLE void init() {
47 47
         UNUSED(INTERP)
  48
+        UNUSED(SELF)
48 49
     }
49 50
 
50 51
     VTABLE void *get_pointer() {
51 52
         UNUSED(INTERP)
  53
+        UNUSED(SELF)
52 54
         return PMCNULL;
53 55
     }
54 56
 
55 57
     VTABLE void set_pointer(void *p) {
56 58
         UNUSED(INTERP)
  59
+        UNUSED(SELF)
57 60
         PMCNULL = (PMC *)p;
58 61
     }
59 62
 
60 63
     VTABLE INTVAL does(STRING *what) {
61 64
         UNUSED(INTERP)
  65
+        UNUSED(SELF)
62 66
         UNUSED(what)
63 67
         /* XXX maybe a hack to get TGE running again */
64 68
         return 0;
@@ -74,6 +78,8 @@ Returns true if value is also a null PMC, false otherwise.
74 78
 
75 79
 */
76 80
     VTABLE INTVAL is_same(PMC *value) {
  81
+        UNUSED(INTERP)
  82
+        UNUSED(SELF)
77 83
         return PMC_IS_NULL(value);
78 84
     }
79 85
 
@@ -88,6 +94,7 @@ Gives a more informative message than the automaticaly generated version.
88 94
 */
89 95
 
90 96
     VTABLE PMC *find_method(STRING *method_name) {
  97
+        UNUSED(SELF)
91 98
         Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_NULL_REG_ACCESS,
92 99
                 "Null PMC access in find_method('%Ss')",
93 100
                 method_name);
@@ -99,7 +106,7 @@ Gives a more informative message than the automaticaly generated version.
99 106
 
100 107
 =back
101 108
 
102  
-=head2 Auxiliar functions
  109
+=head2 Auxiliary functions
103 110
 
104 111
 =over 4
105 112
 

0 notes on commit bc6c413

Please sign in to comment.
Something went wrong with that request. Please try again.