Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3550281ybz; Mon, 20 Apr 2020 05:08:43 -0700 (PDT) X-Google-Smtp-Source: APiQypK8ThszFyrzoL9cV7w7fojr2zuO3NLxgIYFvMb0RKZbphbaFYB1cMQAl/gsR+dsNWzT7lm9 X-Received: by 2002:a17:906:131b:: with SMTP id w27mr15727445ejb.230.1587384523078; Mon, 20 Apr 2020 05:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587384523; cv=none; d=google.com; s=arc-20160816; b=ln1XXTvSgEEGge1zi9dVkQd82hURKheXKXHDsP5mEU/TvWixzxnyF5AJvnS6YRoLYA qtloBJbb7VgxjRvcBJsCZXX2ks3qkJc+z1LE6JvN0Nk1ER6DuVS4dKMYsU1kzk4LEnKt /ij6ermMqNP+nYxnaf6GwfDL40hpJjGW22okmffXj6Xtqro+5ScgVvpaU6OLDu8Z8vtq r+9mE7zhjBBZtwOXbfts8PXAXol82Uzj20ISHzrsV5Zgl087kyBZ1ulhs7qoGPD6oUvk 95Fltvd5j7VHBO0/CElox5L9YWlIbmK++KmjYX6eYt/qM53pbbm4o+x0ZQrpHqn7Gyxy 6nug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CjToos8DVyJOPKLRIFmS8/X/EuQPOnHvG9kj6h8qFhc=; b=eh4/t5oW2mO4xS5m3jFqYZgJ/ENNfDIXH+tvMX1/GOJdFVGnIZvHocPVs6k2XZtZvR ZK/VWDFIE4Qokb6eOUAI5y114rDv4mmhNbcJmYOeLl9ARiLPAcjTUu5qFM8XJA1eFiSD NyvODveRH/uAXe90Jt6en4ek1YAF/wFFWP7QqXcY5JO1EtAJylVWmdl3c9QU53VNl/Rx qly9MgkSWl1VSQl5XOn8Vy6UcuhDFCZE0WXD9q83JQhhpEJR74lo8BPfembzKPMo6jyx kAXxviBkcDSA81DfDM002MYQRrhEgCzZIDQAv9yPRBM7HIVK4KAKfb89XuLmg0F6dQpg oFvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=1CVdTiOR; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x24si407757edr.432.2020.04.20.05.08.02; Mon, 20 Apr 2020 05:08:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=1CVdTiOR; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726447AbgDTMHO (ORCPT + 99 others); Mon, 20 Apr 2020 08:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725944AbgDTMHO (ORCPT ); Mon, 20 Apr 2020 08:07:14 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACEABC061A0F for ; Mon, 20 Apr 2020 05:07:13 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 198so7699552lfo.7 for ; Mon, 20 Apr 2020 05:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CjToos8DVyJOPKLRIFmS8/X/EuQPOnHvG9kj6h8qFhc=; b=1CVdTiORuJpxx0QXtNyM8VGakYuF71ETGaAz0xhBXieC0VxVQ4hDMSVU3OkGZA08mU 2qJAXBZ/qY9Kc19VqC2hWagPdxSYCiTW68DUpywnVneYbp9ptr4zxM0LM+S7/niM1JsE 1jX22mmoE2tmNTuvlHIqCwwjDMxBFZ0EhPB0E2xWOwnOyFMozy6kB6asWdAnITf3aOpx A+3xUdlm/o0LHeFELeQwCsPRaIGyePatB6h8N7WWG2AOrzM/nG9JodKuhkYFO+/R82ub tjHrGREezgkR0AVo/YNrqyZFKjfHhd+JaQtJwTc6qPxPgYeXfxp5m5uesBEs0g3UQ+kp 1OEw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CjToos8DVyJOPKLRIFmS8/X/EuQPOnHvG9kj6h8qFhc=; b=XNSPoYpSpKY2BoADACyN3b3aCbIh5NZ0a5F5JgYeezDKxZg293QDV7STY0kOEaCew9 G9mgfYrQqFSsYWy/+dyVsCKAgm4d/rS6ihuL+NlwPTTJAcx9DjvwrgPrhSc4F+O3h2PJ PVI+0hQhROmAoQkn3szzfl6tmyygugeq5FCOIs4+Njg/3CeIUQ788icV8vqmk9+KQBS6 +YvplaXlEhx04ns2bLj161Vtg/3lPrNnhxru4vf9as3rkekzv8jDWCnzRuoLBnHk+ndh c9LJmwpv1cHtOIIO9Y6FTRBf0bY43CcSXGki2qKd7uWjRltUYotsaHB/SLNfXajReRdV X2Lw== X-Gm-Message-State: AGi0Pub0oBMflM58lH7tosWZ8aiDyj6Gzc3yQp3kfi3N0ut9KKl6aUFi 2QbZLHzRfeBEjZo0Ayw+06fs1VLSgQQ= X-Received: by 2002:a05:6512:10c9:: with SMTP id k9mr10281900lfg.183.1587384431729; Mon, 20 Apr 2020 05:07:11 -0700 (PDT) Received: from localhost.localdomain (45-11-60-42.ip4.greenlan.pl. [45.11.60.42]) by smtp.gmail.com with ESMTPSA id i18sm666814lfo.57.2020.04.20.05.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 05:07:11 -0700 (PDT) From: Szymon Janc To: linux-bluetooth@vger.kernel.org Cc: Szymon Janc Subject: [PATCH 2/4] sap: Fix compilation with GCC 10 Date: Mon, 20 Apr 2020 14:07:03 +0200 Message-Id: <20200420120705.89691-2-szymon.janc@codecoup.pl> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200420120705.89691-1-szymon.janc@codecoup.pl> References: <20200420120705.89691-1-szymon.janc@codecoup.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- profiles/sap/sap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/sap/sap.h b/profiles/sap/sap.h index 16c333a9b..6e78d6c2d 100644 --- a/profiles/sap/sap.h +++ b/profiles/sap/sap.h @@ -76,7 +76,7 @@ struct sap_parameter { uint8_t id; uint8_t reserved; uint16_t len; - uint8_t val[0]; + uint8_t val[]; /* * Padding bytes 0-3 bytes */ @@ -86,7 +86,7 @@ struct sap_message { uint8_t id; uint8_t nparam; uint16_t reserved; - struct sap_parameter param[0]; + struct sap_parameter param[]; } __attribute__((packed)); #define SAP_BUF_SIZE 512 -- 2.26.0