From patchwork Mon Jul 21 17:17:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 34008 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E6BB020672 for ; Mon, 21 Jul 2014 17:17:54 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g18sf41738969oah.10 for ; Mon, 21 Jul 2014 10:17:53 -0700 (PDT) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=xh5QpzjELlOV8shiZvb+kGfzi+xnV4Un/lB1iWHW5Ho=; b=CoSbwlnLTO6CjM2aKnt9HHQItbjs86N0fIQfkwsizYKce2PQ9CdcjanAA40aummIqz y88wBOV+UtLBC2fSVKDQWvDgL+kc0wE7JPWMW8VS3TN3EDFjQ+x2yrh2YQBBkg3+M+gm 7aNFL4xozF8ulIh2o8SB+DUaLtb+MQCKTxzpl1Gr5yeN1QEy8Th6Wdt/d37OYnwgXAAS fMu/i2AlEqlFklHYzCenSiOIK148/LvwH0X7hXWNN02BiSZcxQr/XiEBJrssCD4VRVCv PuKIQwnyUiFjPvVLxOBw045tUi245RIReQ46r6zImKc1ldD3fPNNdINi6CkI1c5y751W dtWQ== X-Gm-Message-State: ALoCoQnJ/LJlGCZ3tyFVCLWGE1JCLUZdYLGLq7HRMkAyYGTryzTbrx64lPDqaAKarg7343HHTmFY X-Received: by 10.182.34.130 with SMTP id z2mr14125416obi.3.1405963072880; Mon, 21 Jul 2014 10:17:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.77 with SMTP id r71ls1994015qga.71.gmail; Mon, 21 Jul 2014 10:17:52 -0700 (PDT) X-Received: by 10.52.185.72 with SMTP id fa8mr26480828vdc.4.1405963072769; Mon, 21 Jul 2014 10:17:52 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id iq6si11918350vcb.100.2014.07.21.10.17.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 10:17:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lf12so12337309vcb.26 for ; Mon, 21 Jul 2014 10:17:40 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr14060557vcb.48.1405963060680; Mon, 21 Jul 2014 10:17:40 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp129935vcb; Mon, 21 Jul 2014 10:17:40 -0700 (PDT) X-Received: by 10.140.94.138 with SMTP id g10mr40745413qge.90.1405963060272; Mon, 21 Jul 2014 10:17:40 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id v11si9794775qgd.95.2014.07.21.10.17.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 21 Jul 2014 10:17:40 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X9HDX-0000Os-D5; Mon, 21 Jul 2014 17:17:39 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X9HDN-0000OQ-LF for lng-odp@lists.linaro.org; Mon, 21 Jul 2014 17:17:29 +0000 Received: by mail-lb0-f181.google.com with SMTP id 10so2930196lbg.40 for ; Mon, 21 Jul 2014 10:17:23 -0700 (PDT) X-Received: by 10.112.54.197 with SMTP id l5mr4634164lbp.103.1405963043540; Mon, 21 Jul 2014 10:17:23 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id 5sm9450990lau.29.2014.07.21.10.17.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 10:17:22 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 21 Jul 2014 20:17:11 +0300 Message-Id: <1405963033-29230-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1405963033-29230-1-git-send-email-taras.kondratiuk@linaro.org> References: <1405963033-29230-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/3] debug: Fix ODP_STATIC_ASSERT 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.220.181 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 GCC provides _Static_assert() function. Signed-off-by: Taras Kondratiuk Reviewed-by: Anders Roxell Tested-by: Mike Holmes --- include/odp_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/odp_debug.h b/include/odp_debug.h index 166716d..edc775f 100644 --- a/include/odp_debug.h +++ b/include/odp_debug.h @@ -46,7 +46,7 @@ extern "C" { * Compile time assertion-macro - fail compilation if cond is false. * @note This macro has zero runtime overhead */ -#define ODP_STATIC_ASSERT(cond, msg) _static_assert(cond, msg) +#define ODP_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg) /** * Debug printing macro, which prints output when DEBUG flag is set.