From patchwork Wed Feb 4 12:00:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 44330 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 23E3B21513 for ; Wed, 4 Feb 2015 12:00:49 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf1012787wgh.1 for ; Wed, 04 Feb 2015 04:00:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=y+97DXcivIDt4j7zR5mEPmLJHceZBbpRP/YZRZEo6Ic=; b=OeHzjK7WAr/kIg8I1KOnP+aJfu6tmlJGH0kqMf/XdnzsyXdwv7W+rhxzvkGUze9dX/ LDwzurG9xCyb0xcXpXd01Fk0VUih4IgMVy6O16W77is/NV9yPwRkJoMW1Ex9VaXEtdH+ S3jAdamfCr6eDJ/WI0//0ZS/U9Sm01AiRIDkv3xr0StMt28+eWttRpmrgNR1Ucag7Cnj c3TXoq2Q+a9bd7F8TVeiiS2aB6ciwwf6o0aYQ0jWTiIew7Oi4JsDXMOH7/ebkQWRJ9gR YTy8AJ8ti7fa7z2UsozUCGwy3J/pe6hb9A8Her7QGUZE2cvAuRmy1tv3HFrggPEfyzl8 W1mA== X-Gm-Message-State: ALoCoQliXvHWQScyC4s4oK91v8jKJSpGkWAYN/CNAlhKnaY0LXlK2ZXIr9gOKZ4zw4J+WDTacb8q X-Received: by 10.112.35.135 with SMTP id h7mr3769465lbj.23.1423051248396; Wed, 04 Feb 2015 04:00:48 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.4.10 with SMTP id ca10ls24450lad.33.gmail; Wed, 04 Feb 2015 04:00:48 -0800 (PST) X-Received: by 10.112.170.100 with SMTP id al4mr9418056lbc.42.1423051248252; Wed, 04 Feb 2015 04:00:48 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id g4si1153311lab.66.2015.02.04.04.00.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 04:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id z12so1062518lbi.7 for ; Wed, 04 Feb 2015 04:00:47 -0800 (PST) X-Received: by 10.152.8.1 with SMTP id n1mr28922765laa.47.1423051247804; Wed, 04 Feb 2015 04:00:47 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp439172lbj; Wed, 4 Feb 2015 04:00:47 -0800 (PST) X-Received: by 10.140.91.74 with SMTP id y68mr14607257qgd.90.1423051243437; Wed, 04 Feb 2015 04:00:43 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id b4si1833631qam.2.2015.02.04.04.00.42 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 04:00:43 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIydM-0004C0-M3; Wed, 04 Feb 2015 12:00:40 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIydC-0004A3-Kp for lng-odp@lists.linaro.org; Wed, 04 Feb 2015 12:00:30 +0000 Received: by mail-lb0-f177.google.com with SMTP id p9so1050895lbv.8 for ; Wed, 04 Feb 2015 04:00:24 -0800 (PST) X-Received: by 10.112.151.228 with SMTP id ut4mr29811680lbb.77.1423051224906; Wed, 04 Feb 2015 04:00:24 -0800 (PST) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id z15sm312379lbn.48.2015.02.04.04.00.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 04:00:24 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 4 Feb 2015 14:00:09 +0200 Message-Id: <1423051213-20795-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423051213-20795-1-git-send-email-taras.kondratiuk@linaro.org> References: <1423051213-20795-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/5] api: debug: fix static assert macro X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Clang doesn't like parentheses around _Static_assert() macro. Signed-off-by: Taras Kondratiuk --- include/odp/api/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp/api/debug.h b/include/odp/api/debug.h index 05f4e9e..6cf4e05 100644 --- a/include/odp/api/debug.h +++ b/include/odp/api/debug.h @@ -31,8 +31,8 @@ extern "C" { * _Static_assert was only added in GCC 4.6. Provide a weak replacement * for previous versions. */ -#define _Static_assert(e, s) (extern int (*static_assert_checker(void)) \ - [sizeof(struct { unsigned int error_if_negative:(e) ? 1 : -1; })]) +#define _Static_assert(e, s) extern int (*static_assert_checker(void)) \ + [sizeof(struct { unsigned int error_if_negative:(e) ? 1 : -1; })] #endif