From patchwork Fri Apr 1 23:03:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 64912 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp81133lbc; Fri, 1 Apr 2016 16:04:50 -0700 (PDT) X-Received: by 10.140.100.225 with SMTP id s88mr10322346qge.35.1459551890059; Fri, 01 Apr 2016 16:04:50 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p101si13895158qge.52.2016.04.01.16.04.49; Fri, 01 Apr 2016 16:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4E76161CDF; Fri, 1 Apr 2016 23:04: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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED 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 03D44619A7; Fri, 1 Apr 2016 23:04:45 +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 C506461CD1; Fri, 1 Apr 2016 23:04:42 +0000 (UTC) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by lists.linaro.org (Postfix) with ESMTPS id 0B244619A7 for ; Fri, 1 Apr 2016 23:03:30 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id fp4so57528455obb.2 for ; Fri, 01 Apr 2016 16:03:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YQb46oOzYjI01U6h/FSqwm8KLB7GFLvpVL80UAtkxcM=; b=XB+kdlDVzSQWjRRoxpILT6mRXa9IYg9ToMutpo9XL7n4FN6Qayt/7+lNfv/9sKr1wR XNmPy1ZD8EEzG2WGSwObVPGWJO4FwSjVpSfP0Q+/NKOxFwtpik2lIqkve/NMipvrW6fk kbgkBTP/FZbPezrqxFNTTQCTiUIuu8D3IJ8z/4eIycbA0+q8j1ZhLs+S5AfK8i42gSce pZrZCCIMa6m1OPTXM+/Wkk9pZG4IFMWomrnKWtPSt5TEevueJRvy+a8bKhQMGiWqTAyK rEog/TESePI5Ylv2mYtlrERgptEiNALZMi16CykLuJueIjmwaG+gVvilEFjImPzVw+Sb PRyA== X-Gm-Message-State: AD7BkJI+L8EG11ooFNRge5fhYh1sE88ponyA8JWwLI5aqfNOtYMHImDw5TiD7514iUQSfXW/FhM= X-Received: by 10.60.178.202 with SMTP id da10mr6018559oec.11.1459551809466; Fri, 01 Apr 2016 16:03:29 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id l17sm3154985otb.35.2016.04.01.16.03.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Apr 2016 16:03:28 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 1 Apr 2016 18:03:26 -0500 Message-Id: <1459551806-19070-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: queue: avoid false positive when compiling with -Og 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2159 by adding an extraneous variable initialization to avoid a false positive error when compiling with gcc -Og Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 342ffa2..5963057 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -237,7 +237,7 @@ odp_queue_t odp_queue_create(const char *name, const odp_queue_param_t *param) uint32_t i; queue_entry_t *queue; odp_queue_t handle = ODP_QUEUE_INVALID; - odp_queue_type_t type; + odp_queue_type_t type = ODP_QUEUE_TYPE_PLAIN; odp_queue_param_t default_param; if (param == NULL) {