From 1f5b7e56be176fe56ce07687b6b41b5ccfe91828 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 17 Sep 2022 17:43:37 -0400 Subject: [PATCH] fixed build for gcc 11 --- README | 0 Xcoin.c | 2 +- quark.c | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/Xcoin.c b/Xcoin.c index 72be795..cb4050b 100644 --- a/Xcoin.c +++ b/Xcoin.c @@ -33,7 +33,7 @@ typedef struct { sph_echo512_context echo1; } Xhash_context_holder; -Xhash_context_holder base_contexts; +static Xhash_context_holder base_contexts; void init_Xhash_contexts() { diff --git a/quark.c b/quark.c index 01d8044..270a8cb 100644 --- a/quark.c +++ b/quark.c @@ -22,7 +22,7 @@ typedef struct { sph_keccak512_context keccak1, keccak2; } quarkhash_context_holder; -quarkhash_context_holder base_contexts; +static quarkhash_context_holder base_contexts; void init_quarkhash_contexts() { @@ -249,4 +249,4 @@ int scanhash_quark(int thr_id, uint32_t *pdata, const uint32_t *ptarget, *hashes_done = n - first_nonce + 1; pdata[19] = n; return 0; -} \ No newline at end of file +}