Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2018 00:12:55 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r486813 - head/graphics/graphene/files
Message-ID:  <201812070012.wB70Ctpt068060@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812070012.wB70Ctpt068060>