Skip to content

Commit

Permalink
quiet some unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Mar 22, 2012
1 parent a357484 commit d344da6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/call/ops.c
@@ -1,5 +1,5 @@
/*
Copyright (C) 2001-2010, Parrot Foundation.
Copyright (C) 2001-2012, Parrot Foundation.
=head1 NAME
Expand Down Expand Up @@ -151,6 +151,7 @@ void
reset_runloop_id_counter(PARROT_INTERP)
{
ASSERT_ARGS(reset_runloop_id_counter)
UNUSED(interp);
runloop_id_counter = 0;
}

Expand Down
6 changes: 3 additions & 3 deletions src/ops/core.ops
Expand Up @@ -96,6 +96,8 @@ actions on it.
=cut

inline op noop() :base_core {
UNUSED(interp);
UNUSED(CUR_OPCODE);
}

inline op check_events() :base_core :flow {
Expand Down Expand Up @@ -1504,7 +1506,7 @@ inline op annotations(out PMC, in STR) {

=head1 COPYRIGHT

Copyright (C) 2001-2011, Parrot Foundation.
Copyright (C) 2001-2012, Parrot Foundation.

=head1 LICENSE

Expand All @@ -1519,5 +1521,3 @@ as the Parrot interpreter itself.
* End:
* vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
*/


3 changes: 3 additions & 0 deletions src/ops/core_ops.c
Expand Up @@ -13466,6 +13466,8 @@ Parrot_end(opcode_t *cur_opcode, PARROT_INTERP) {

opcode_t *
Parrot_noop(opcode_t *cur_opcode, PARROT_INTERP) {
UNUSED(interp);
UNUSED(CUR_OPCODE);
return (opcode_t *)cur_opcode + 1;
}

Expand Down Expand Up @@ -23123,6 +23125,7 @@ Parrot_find_sub_not_null_p_sc(opcode_t *cur_opcode, PARROT_INTERP) {

opcode_t *
Parrot_trap(opcode_t *cur_opcode, PARROT_INTERP) {
UNUSED(interp);
#if defined(__GNUC__) && defined(i386)
__asm__("int3");

Expand Down
1 change: 1 addition & 0 deletions src/ops/experimental.ops
Expand Up @@ -48,6 +48,7 @@ For other architectures, this is a C<noop>.
=cut

op trap() :deprecated {
UNUSED(interp);
#if defined(__GNUC__) && defined(i386)
__asm__("int3"); /* opcode 0xcc */
#endif
Expand Down

0 comments on commit d344da6

Please sign in to comment.