# New Ticket Created by Simon Glover
# Please include the string: [perl #17864]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=17864 >
Brent's sprintf patch introduced a couple of new warnings here:
exceptions.c: In function `do_panic':
exceptions.c:69: warning: signed and unsigned type in conditional
expression
trace.c:22: warning: no previous prototype for `dump_pmc'
These seem to be harmless and the enclosed patches fix them.
Simon
--- exceptions.c.old Fri Oct 11 11:49:43 2002
+++ exceptions.c Fri Oct 11 11:49:49 2002
@@ -66,7 +66,7 @@ Dumping Core...\n",
PARROT_CONFIG_DATE,
PARROT_ARCHNAME,
JIT_CAPABLE ? "Yes" : "No",
- interpreter ? interpreter->flags : -1,
+ interpreter ? (int)interpreter->flags : -1,
"(missing from core)"
);
--- include/parrot/trace.h.old Fri Oct 11 11:45:41 2002
+++ include/parrot/trace.h Fri Oct 11 11:46:50 2002
@@ -15,6 +15,8 @@
#include "parrot/parrot.h"
+void dump_pmc(struct Parrot_Interp *interpreter, PMC* pmc);
+
void trace_key_dump(struct Parrot_Interp *interpreter, PMC *key);
void trace_op_dump(struct Parrot_Interp *interpreter, opcode_t * code_start,