From 90d3b8969f16290fbbe8c01680fc9f301f42b4bc Mon Sep 17 00:00:00 2001 From: Addison Crump Date: Thu, 9 Nov 2023 18:30:32 +0100 Subject: [PATCH] (hopefully) final unused variable cleanup :) --- src/pcre2_fuzzsupport.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pcre2_fuzzsupport.c b/src/pcre2_fuzzsupport.c index f487c0258..a2585180f 100644 --- a/src/pcre2_fuzzsupport.c +++ b/src/pcre2_fuzzsupport.c @@ -60,7 +60,9 @@ uint32_t compile_options; uint32_t match_options; uint64_t random_options; pcre2_match_data *match_data = NULL; +#ifdef SUPPORT_JIT pcre2_match_data *match_data_jit = NULL; +#endif pcre2_match_context *match_context = NULL; size_t match_size; int dfa_workspace[DFA_WORKSPACE_COUNT]; @@ -159,8 +161,12 @@ for (i = 0; i < 2; i++) if (match_data == NULL) { match_data = pcre2_match_data_create(32, NULL); +#ifdef SUPPORT_JIT match_data_jit = pcre2_match_data_create(32, NULL); if (match_data == NULL || match_data_jit == NULL) +#else + if (match_data == NULL) +#endif { #ifdef STANDALONE printf("** Failed to create match data block\n"); @@ -336,7 +342,9 @@ for (i = 0; i < 2; i++) } if (match_data != NULL) pcre2_match_data_free(match_data); +#ifdef SUPPORT_JIT if (match_data_jit != NULL) pcre2_match_data_free(match_data_jit); +#endif if (match_context != NULL) pcre2_match_context_free(match_context); return 0;