Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move UNUSED macro call after declarations
makes -Werror=declaration-after-statement happy
  • Loading branch information
moritz committed Dec 3, 2012
1 parent 4a3fb26 commit 39ab731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pmc/qrpa.pmc
Expand Up @@ -147,16 +147,16 @@ Resizes the array to C<n> elements.


VTABLE INTVAL elements() {
UNUSED(INTERP);
Parrot_QRPA_attributes * const qrpa = PARROT_QRPA(SELF);
UNUSED(INTERP);
return qrpa->elems;
}


VTABLE INTVAL exists_keyed_int(INTVAL pos) {
UNUSED(INTERP);
Parrot_QRPA_attributes * const qrpa = PARROT_QRPA(SELF);
PMC *value;
UNUSED(INTERP);

if (pos < 0)
pos += qrpa->elems;
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/stable.pmc
Expand Up @@ -23,9 +23,9 @@ 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);
UNUSED(INTERP)
st->type_cache_id = get_next_type_cache_id();
st->HOW = HOW;
PMC_data(SELF) = st;
Expand Down

0 comments on commit 39ab731

Please sign in to comment.