From patchwork Fri Dec 22 12: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: 122647 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2155592qgn; Fri, 22 Dec 2017 04:01:51 -0800 (PST) X-Google-Smtp-Source: ACJfBotVQm054O+ksWslHtGA9dokNnjqNQn/nFMyiI1ouas/Lb0fh1WLIzwGRJGZmnZNp7PYF1HN X-Received: by 10.200.24.235 with SMTP id o40mr18716958qtk.91.1513944111785; Fri, 22 Dec 2017 04:01:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513944111; cv=none; d=google.com; s=arc-20160816; b=flKMeqala/tQzbuU6XBiHmre4tkIJFcKbZdN5xzfM6lHQidjRFbQsRtgoua9JEe6zt r3A02dZxgXa6jq9Vpj90oqWrlhzpDwBf3/6wVO3+xa5xkW1hUHyvA1+vX3djPNS/rCNn uJIat00cACkFnQyUWLESlhc0SD4M2Bz1FjHiW8NUtVYPzwxq6XQ338PaVcc06/hHfeMR 55oXRKUzRdREEgIcgqW+sQoef7k3Ps9OoqAyKgK5OFVz3F0OcQm4W8LH3VKVhIqJXwpU ByoObQQhgQlraUTbZ5Bf2616Fn4ht1QnBuJw3DBDB7J3QuLUhHbdt4C4pyHhr5Wb3Mnh mfAA== 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=FEq2U5CWTOjmFbwnVrR7qbVMQFNDxFwVznE6+QZN2DE=; b=rlxx3x4VPPSxE3Ggbv+6Wj4U1+wE3PqwNZnKxeOQF3GCxNKuGDrhF6m6gdzrdJymsR 0qkH9D4ERWSCWM7vOV/av+sCpfbS4kdLnZJfmaf7nOx/kgRoWC9cDUPkKZziFrrlQ4Y3 Xnx5md2fmJR7sWjqRdOSwssaPsyeu2hWoCvBKIbwS+MDujZ1Y5Rtgg3eRbG6rtySb/FZ FKRF+B2Z6ZsuDtQHnBfWO9vBnH0tbilFd58V1abrvMQwBx/2sTAH+TDZP9lXNq2lZqOK x1xFuKnxgvj+yX5Lkj/sXjjvpMvuHgsX0+GD6FF/EQVMCtCKPojvK6uprGHoloqgBhcJ ziWQ== 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 j2si1722231qtd.82.2017.12.22.04.01.49; Fri, 22 Dec 2017 04:01:51 -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 7D447616F7; Fri, 22 Dec 2017 12:01:49 +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_H2 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 7E05E61518; Fri, 22 Dec 2017 12:01:36 +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 59B0A61721; Fri, 22 Dec 2017 12:01:29 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 664A660B4F for ; Fri, 22 Dec 2017 12:00:13 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 138655A049DA for ; Fri, 22 Dec 2017 15:00:12 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id eMAfVG9XCd-0BhKwFLr; Fri, 22 Dec 2017 15:00:12 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ajkfnrHtRr-0Bx8f2H4; Fri, 22 Dec 2017 15:00:11 +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 15:00:09 +0300 Message-Id: <1513944009-27633-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513944009-27633-1-git-send-email-odpbot@yandex.ru> References: <1513944009-27633-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 364 MIME-Version: 1.0 Subject: [lng-odp] [PATCH v2 1/1] 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: 5de0d769b4201b2a63d0012b24f043e62d7b4c43 **/ 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 */