From f371e11fa74039241c648d4f1b39b4921f6f57b5 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Wed, 26 Feb 2014 15:35:21 -0600 Subject: [PATCH] [imcc] Fix parrot compilation with --optimize Parrot_warn undeclared --- frontend/parrot/main.c | 2 +- frontend/parrot2/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/parrot/main.c b/frontend/parrot/main.c index 78479018dc..ea5faed107 100644 --- a/frontend/parrot/main.c +++ b/frontend/parrot/main.c @@ -862,7 +862,7 @@ parseflags(Parrot_PMC interp, int argc, ARGIN(const char *argv[]), args->have_pbc_file = 1; break; case OPT_GC_DEBUG: -#if DISABLE_GC_DEBUG +#if 0 && DISABLE_GC_DEBUG Parrot_warn(interp, 0xFFFF, "PARROT_GC_DEBUG is set but the binary was compiled " "with DISABLE_GC_DEBUG."); diff --git a/frontend/parrot2/main.c b/frontend/parrot2/main.c index efe856bbc8..4dfe2de8e5 100644 --- a/frontend/parrot2/main.c +++ b/frontend/parrot2/main.c @@ -695,7 +695,7 @@ parseflags(Parrot_PMC interp, int argc, ARGIN(const char *argv[]), pargs[nargs++] = "-c"; break; case OPT_GC_DEBUG: -#if DISABLE_GC_DEBUG +#if 0 && DISABLE_GC_DEBUG Parrot_warn(interp, 0xFFFF, "PARROT_GC_DEBUG is set but the binary was compiled " "with DISABLE_GC_DEBUG.");