From patchwork Sat May 22 15:21:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 12361 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1A8ECC3200 for ; Sat, 22 May 2021 15:21:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6A02268919; Sat, 22 May 2021 17:21:47 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ragnatech-se.20150623.gappssmtp.com header.i=@ragnatech-se.20150623.gappssmtp.com header.b="o5JCuJgx"; dkim-atps=neutral Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A6C31601AA for ; Sat, 22 May 2021 17:21:45 +0200 (CEST) Received: by mail-ed1-x534.google.com with SMTP id s6so26712704edu.10 for ; Sat, 22 May 2021 08:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HoFs28HY/J2W53YBOaPnJIqPS0D7MgpJ2Do82Y5GB14=; b=o5JCuJgxBxNSKsmmD7UmaOVJEEeLbRrIpuyUgwSuFrhyay5b5x53lGMtyL2ONalceS tA5ksMQIZjfwZS762iAfILDVKD2/Xa/lG+b78PwtOsHijN7xJWP07L1V2UcAAWkZNUG/ UFNe4FY9o2zC5i5aCXAwrxLvYiJ21lkYKbgGhdnPX0sPjho8Affd7uzikUW/dokup4Na c2LU+TILojAbywIzkV9iuqptUUNc0xw53R7QblezaWvawjUWqzJhZfhG+9+fINPayaZz 8bogkX7p8gAw6982XP7A2t2eUS/npqstSHo0x99ljCXeR+rrgYECNPqPOpqBWIz4MCvC sppA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HoFs28HY/J2W53YBOaPnJIqPS0D7MgpJ2Do82Y5GB14=; b=okv2in0M9YkctgLXpL2U2uvL1yCwdwHkkzcVp0ieS69Z9hWxbvdQu5ANotXrBSMCpe pIawpqZWhSNRTnBg5r12/Z71tRjvNW/APP7xtwE5L1j2+NAoWKGeeeR3HTOTuvcdc1TI ud/+bq4tqqd5igadgWcT9h3JkgUFgM30o9nBYBXVPsVrjnGY1TQlsxGdyMiXYgat+jd5 5t59bgbda3BBSjKwK1I9newB7pMe8iu8HC1ei7ixGwZ+5FUHpTGzoFOUhOSwRG+r+LoM oDZQEB2FM8BWx+e9fcQxGcNJ1zNW9hIgulLK769jYp/IJGRVgWsn+GwGrJUwlKcIdVuO 1mdw== X-Gm-Message-State: AOAM533pDwAH0LBPgMKlY9uwdXWMDR5NHk3u6bT+Ugz2e6Cj8dfoHknV sgwXbH5Xa/8E9Qbqf0bbfLE3Mln+Ym1u+w== X-Google-Smtp-Source: ABdhPJxWW3TBKyv0KfQk9CAyArgz1gE+Yk467e01VZaY4z7gfP0pz85i7/8ZBM1xEm/68IFPk+hhag== X-Received: by 2002:aa7:da0e:: with SMTP id r14mr16583993eds.119.1621696905234; Sat, 22 May 2021 08:21:45 -0700 (PDT) Received: from bismarck.berto.se (p54ac5521.dip0.t-ipconnect.de. [84.172.85.33]) by smtp.googlemail.com with ESMTPSA id lv10sm5938897ejb.32.2021.05.22.08.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 May 2021 08:21:44 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Sat, 22 May 2021 17:21:32 +0200 Message-Id: <20210522152132.2136700-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] test: byte-stream-buffer: Initialize data array X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Fix compiler warning about variable use before being initialized that appears with gcc 11.1.0. test/byte-stream-buffer.cpp:31:63: error: ‘data’ may be used uninitialized [-Werror=maybe-uninitialized] Signed-off-by: Niklas Söderlund Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart --- test/byte-stream-buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/byte-stream-buffer.cpp b/test/byte-stream-buffer.cpp index d606f146f6ef04ed..c911a863d27122ae 100644 --- a/test/byte-stream-buffer.cpp +++ b/test/byte-stream-buffer.cpp @@ -20,7 +20,7 @@ class ByteStreamBufferTest : public Test protected: int run() { - std::array data; + std::array data = {}; unsigned int i; uint32_t value; int ret;