From e8465aee45f1303afcfe4667a445bab6ee81749c Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Mon, 22 Aug 2016 08:17:31 -0700 Subject: [PATCH] Fix benchmark build Summary: Benchmarks were broken by const diff leaving in some code which should not have changed. This was not caught earlier due to benchmarks only being run on travis. Reviewed By: IanChilds Differential Revision: D3751151 fbshipit-source-id: 08207ce7ad584d4681a27ec0727bbfdbc1198d05 --- benchmarks/CSSBenchmark.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/CSSBenchmark.c b/benchmarks/CSSBenchmark.c index d3328221..d47f9ff8 100644 --- a/benchmarks/CSSBenchmark.c +++ b/benchmarks/CSSBenchmark.c @@ -14,11 +14,11 @@ // Measure functions can be quite slow, for example when measuring text. // Simulate this by sleeping for 1 millisecond. -static CSSSize _measure(const void *context, - const float width, - const CSSMeasureMode widthMode, - const float height, - const CSSMeasureMode heightMode) { +static CSSSize _measure(void *context, + float width, + CSSMeasureMode widthMode, + float height, + CSSMeasureMode heightMode) { const struct timespec sleeptime = {0, 1000000}; nanosleep(&sleeptime, NULL); return (CSSSize){