summaryrefslogtreecommitdiff
path: root/src/benchmarks/eina/eina_bench_crc_hash.c
diff options
context:
space:
mode:
authorTom Callaway <spot@fedoraproject.org>2020-01-31 12:40:45 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-31 14:31:57 +0100
commitc245b576aad09ac5faeb800de7f7c4fef87c6363 (patch)
tree15be97f328d4756f308d1bcf4ec2b135cbc75850 /src/benchmarks/eina/eina_bench_crc_hash.c
parent5af0e65bffa612f51ac72f4c78ba005dd1da63e2 (diff)
Fix build with gcc 10 (which has -fno-common enabled by default).
EFL failed to build from source in Fedora Rawhide as a result of the update to GCC 10. GCC 10 enables -fno-common by default, and this found three issues in EFL: # The eina benchmark code defined int key_size in a header that was included in multiple places. # The elementary test code defines the "dt1", "dt2", "dt3" vars in two code files which are compiled together (but these variables do not appear to be used globally) # The eio test code defines the "ee" var in two code files which are compiled together (but this variable does not appear to be used globally) I've fixed these issues and confirmed locally that the code builds again in Fedora. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11259
Diffstat (limited to '')
-rw-r--r--src/benchmarks/eina/eina_bench_crc_hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/benchmarks/eina/eina_bench_crc_hash.c b/src/benchmarks/eina/eina_bench_crc_hash.c
index b6734489a3..7750233ed4 100644
--- a/src/benchmarks/eina/eina_bench_crc_hash.c
+++ b/src/benchmarks/eina/eina_bench_crc_hash.c
@@ -26,6 +26,7 @@
26uint64_t CityHash64(const char *buf, size_t len); 26uint64_t CityHash64(const char *buf, size_t len);
27#endif 27#endif
28 28
29int key_size;
29char *key_str=NULL; 30char *key_str=NULL;
30 31
31void repchar(int n) 32void repchar(int n)