From patchwork Fri Dec 22 15:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122653 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2357726qgn; Fri, 22 Dec 2017 07:01:04 -0800 (PST) X-Google-Smtp-Source: ACJfBoucJw4+zY0VqV/PP5RSAU5qdKBAXWRuhiFDh8uVsuweORnd6YasqgsNw9bztw7dZNU7hdLM X-Received: by 10.237.63.121 with SMTP id q54mr20508909qtf.337.1513954864730; Fri, 22 Dec 2017 07:01:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513954864; cv=none; d=google.com; s=arc-20160816; b=SyKUyJszybpRkdRL1XowCp3f/oLbXH21r/MJ0iP9QRRhKSYFJ6L279UhFznEWtu74u F7yLUgj4cWYPjLf/2HbGV4WR91RdSb5h215VjFatmbx9pR37PdRo4Rwe8lD6uO11LQXx /yf0wRvcKewQk/he/RezA3W5CnzAeIiTgTK+3l8JoQ3ifwmARYDT/rp+Imb3VYw/PBYN 0i7QqFlJMmWUXjChGZ3QL6SyTlRRnfbOc+bSMaQbZIVmNBcifSry3+DH5HoWSBo2uw9n o62+VsvlgahCt+jx0BCOjZnpb0Ni59sXYO5/n1V8Jt/pVGtDmGoLRE1scBaAEF4HJGir rCTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:github-pr-num:references :in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=wrKSIgGOeFSM/i/yBJTUFPVKemzlLlgIes16acIcPp0=; b=O7Swg9QDtJ2XRaTLP/my9wHMvAN2BcVwHV1xuAe7KJCxpCGtmp5rLV6/W5nnmfqYiX 6rYQMuYna8vt1+BYBidArWaS+rbj4+Li8aSXrzhyv2aBJCzH7sQkOgymvYtwZali7C3A kdZzyTvWBd0hh1mA37zkMn/EdSE5kbQW2Z4PefJIf8C8H3t+B2yKa/WDLifHg5sE6VEf GpfaI0S3wKOeZbpW7qasM9+5gpDPHn/Nje3zypIeWaAirYstPipuYYVe58ne4ii1t36w /G1BSEnj9ymOO1/WUbHrxbxKRWHDBh1lJb5n1rdo06uYUp7X5aHHUVUdUaCeDFieZmZG PY8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id z36si1449188qtz.180.2017.12.22.07.01.04; Fri, 22 Dec 2017 07:01:04 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 5202C6152B; Fri, 22 Dec 2017 15:01:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 998706151D; Fri, 22 Dec 2017 15:00:24 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2DE4061517; Fri, 22 Dec 2017 15:00:19 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id C68536150D for ; Fri, 22 Dec 2017 15:00:13 +0000 (UTC) Received: from mxback7j.mail.yandex.net (mxback7j.mail.yandex.net [IPv6:2a02:6b8:0:1619::110]) by forward105j.mail.yandex.net (Yandex) with ESMTP id C4D8D184113 for ; Fri, 22 Dec 2017 18:00:12 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback7j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4e3eJvrewp-0CRmdk3H; Fri, 22 Dec 2017 18:00:12 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id I4E4Rt3UeX-0C5iq2kp; Fri, 22 Dec 2017 18:00:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 22 Dec 2017 18:00:09 +0300 Message-Id: <1513954810-13183-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513954810-13183-1-git-send-email-odpbot@yandex.ru> References: <1513954810-13183-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 364 MIME-Version: 1.0 Subject: [lng-odp] [PATCH v3 1/2] test: workaround buggy CUnit header X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Make GCC ignore following error: In file included from odp_cunit_common.h:20:0, from odp_cunit_common.c:13: /home/travis/cunit-install/include/CUnit/Automated.h:90:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes] const char *CU_automated_package_name_get(); ^ cc1: all warnings being treated as errors Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 364 (lumag:fix-cunit-automated) ** https://github.com/Linaro/odp/pull/364 ** Patch: https://github.com/Linaro/odp/pull/364.patch ** Base sha: 4c4052f894b8df5784d2aae2e36b96796ee020fd ** Merge commit sha: 4f664ef2093e4ae0db2c05c8ee08a1b39ae42f43 **/ test/common/odp_cunit_common.c | 12 ++++++++++++ test/common/odp_cunit_common.h | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test/common/odp_cunit_common.c b/test/common/odp_cunit_common.c index 55a39d910..faa67733f 100644 --- a/test/common/odp_cunit_common.c +++ b/test/common/odp_cunit_common.c @@ -12,6 +12,18 @@ #include #include "odp_cunit_common.h" #include + +#include + +#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-prototypes" +#endif +#include +#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic pop +#endif + /* Globals */ static odph_odpthread_t thread_tbl[MAX_WORKERS]; static odp_instance_t instance; diff --git a/test/common/odp_cunit_common.h b/test/common/odp_cunit_common.h index 3727a4259..390e8f57b 100644 --- a/test/common/odp_cunit_common.h +++ b/test/common/odp_cunit_common.h @@ -16,8 +16,6 @@ #include #include #include -#include -#include #include #define MAX_WORKERS 32 /**< Maximum number of work threads */