summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwrog <wrog>2006-12-06 23:51:31 (GMT)
committerwrog <wrog>2006-12-06 23:51:31 (GMT)
commit58eb73b86fed01eaab4e9f8c2706a360054b9add (patch)
tree279020403c2a24325c928c9ac927bbf9dabfb4f0
parentde392a26c450768a9440d57b09bc47089c2ffaf8 (diff)
downloadmoo-cvs-58eb73b86fed01eaab4e9f8c2706a360054b9add.zip
moo-cvs-58eb73b86fed01eaab4e9f8c2706a360054b9add.tar.gz
moo-cvs-58eb73b86fed01eaab4e9f8c2706a360054b9add.tar.bz2
moo-cvs-58eb73b86fed01eaab4e9f8c2706a360054b9add.tar.xz
Fix compiler warnings about unused values
-rw-r--r--decompile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/decompile.c b/decompile.c
index 95a3352..1b0fbda 100644
--- a/decompile.c
+++ b/decompile.c
@@ -66,6 +66,7 @@ do { \
arm_sink = &(temp->next); \
} while (0);
+#define SKIP_BYTES(n) ((void)(ptr += n))
#define READ_BYTES(n) \
(ptr += n, \
(n == 1 \
@@ -82,7 +83,7 @@ do { \
#define READ_LITERAL() program->literals[READ_BYTES(bc.numbytes_literal)]
#define READ_FORK() program->fork_vectors[READ_BYTES(bc.numbytes_fork)]
#define READ_ID() READ_BYTES(bc.numbytes_var_name)
-#define READ_STACK() READ_BYTES(bc.numbytes_stack)
+#define READ_STACK() SKIP_BYTES(bc.numbytes_stack)
#define READ_JUMP(is_hot) read_jump(bc.numbytes_label, &ptr, &is_hot)
@@ -994,6 +995,9 @@ char rcsid_decompile[] = "$Id$";
/*
* $Log$
+ * Revision 1.7 2006/12/06 23:51:31 wrog
+ * Fix compiler warnings about unused values
+ *
* Revision 1.6 2002/09/15 23:21:01 xplat
* GNU indent normalization.
*