svn commit: r486813 - head/graphics/graphene/files
Mark Linimon
linimon at FreeBSD.org
Fri Dec 7 00:12:56 UTC 2018
Author: linimon
Date: Fri Dec 7 00:12:55 2018
New Revision: 486813
URL: https://svnweb.freebsd.org/changeset/ports/486813
Log:
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)
Added:
head/graphics/graphene/files/
head/graphics/graphene/files/patch-src_bench_graphene-bench-utils.c (contents, props changed)
Added: head/graphics/graphene/files/patch-src_bench_graphene-bench-utils.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/graphene/files/patch-src_bench_graphene-bench-utils.c Fri Dec 7 00:12:55 2018 (r486813)
@@ -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;
+
More information about the svn-ports-head
mailing list