aboutsummaryrefslogtreecommitdiff
path: root/graphics/graphene
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2018-12-07 00:12:55 +0000
committerMark Linimon <linimon@FreeBSD.org>2018-12-07 00:12:55 +0000
commit74fe36ceb28e54b248439542d799fce5887d9e71 (patch)
treecd78bee1bbea14359ef865dbe7dd3e325af517ae /graphics/graphene
parentd7dad4c249604bca9445fde38939a8e96207d97a (diff)
downloadports-74fe36ceb28e54b248439542d799fce5887d9e71.tar.gz
ports-74fe36ceb28e54b248439542d799fce5887d9e71.zip
This port sets -Werror=shadow, yet uses a variable 'round' in a function,
which shadows the function declared in math.h, causing a build failure on gcc-based architectures.. PR: 231912 Submitted by: jhibbits Reviewed by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
Notes
Notes: svn path=/head/; revision=486813
Diffstat (limited to 'graphics/graphene')
-rw-r--r--graphics/graphene/files/patch-src_bench_graphene-bench-utils.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/graphene/files/patch-src_bench_graphene-bench-utils.c b/graphics/graphene/files/patch-src_bench_graphene-bench-utils.c
new file mode 100644
index 000000000000..76cd151178ea
--- /dev/null
+++ b/graphics/graphene/files/patch-src_bench_graphene-bench-utils.c
@@ -0,0 +1,20 @@
+--- src/bench/graphene-bench-utils.c.orig 2018-12-04 11:34:21 UTC
++++ src/bench/graphene-bench-utils.c
+@@ -271,7 +271,7 @@ graphene_bench_print_results (const char *impl,
+ {
+ const char *d_unit, *round_unit, *iter_unit;
+ double d = format_time (elapsed, &d_unit);
+- double round = format_time (avg, &round_unit);
++ double my_round = format_time (avg, &round_unit);
+ double iter = format_time (avg / bench_unit_rounds, &iter_unit);
+
+ switch (bench_output)
+@@ -283,7 +283,7 @@ graphene_bench_print_results (const char *impl,
+ " Per iteration: %.6f %s\n",
+ path, (gint64) (num_rounds * bench_unit_rounds), impl,
+ d, d_unit, num_rounds,
+- round, round_unit, bench_unit_rounds,
++ my_round, round_unit, bench_unit_rounds,
+ iter, iter_unit);
+ break;
+