From 1a5fd9c155be65d49d51cd511097541897f4bb37 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 10 Jun 2016 11:07:21 -0700 Subject: Fix misc-macro-parentheses warnings in bionic. Add parentheses around macro arguments used beside operators, or use constexpr for simple constants. Bug: 28705665 Change-Id: I378c8aad92d3ec8e8c4b0440b5c2c99dfe01ce79 --- benchmarks/stdio_benchmark.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'benchmarks/stdio_benchmark.cpp') diff --git a/benchmarks/stdio_benchmark.cpp b/benchmarks/stdio_benchmark.cpp index cc07128d4..a556d1723 100644 --- a/benchmarks/stdio_benchmark.cpp +++ b/benchmarks/stdio_benchmark.cpp @@ -20,8 +20,7 @@ #include -#define KB 1024 -#define MB 1024*KB +constexpr auto KB = 1024; #define AT_COMMON_SIZES \ Arg(1)->Arg(2)->Arg(3)->Arg(4)->Arg(8)->Arg(16)->Arg(32)->Arg(64)->Arg(512)-> \ -- cgit v1.2.3