From: Matthias St. Pierre Date: Fri, 15 Sep 2023 13:32:25 +0000 (+0200) Subject: APPS: remove duplicate definition of `trace_data_stack` X-Git-Tag: openssl-3.2.0-alpha2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46ea5486f34ff8c2fed67674da2a363bbd66691b;p=thirdparty%2Fopenssl.git APPS: remove duplicate definition of `trace_data_stack` Note: It seems like the C compiler doesn't care about the duplicate. (The first definition is eight lines above.) The C++ compiler however didn't like it when I reused the tracing code snippets elsewhere. Reviewed-by: Matt Caswell Reviewed-by: Tom Cosgrove Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/22117) --- diff --git a/apps/openssl.c b/apps/openssl.c index dd41ac3a84e..adf77096c7f 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -157,8 +157,6 @@ static void tracedata_free(tracedata *data) OPENSSL_free(data); } -static STACK_OF(tracedata) *trace_data_stack; - static void cleanup_trace(void) { sk_tracedata_pop_free(trace_data_stack, tracedata_free);