From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94BAC460C9; Tue, 21 Jan 2025 00:25:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B93E427CE; Tue, 21 Jan 2025 00:24:57 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id ED3A1427B7 for ; Tue, 21 Jan 2025 00:24:54 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-21634338cfdso117191755ad.2 for ; Mon, 20 Jan 2025 15:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737415494; x=1738020294; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fshhkaLQ8bH+zXvoToJzdWRjs3rdQjnDV/5Fs8m1GFE=; b=PeAZEoDhhMuV+jvL68GhpbFaHAc1siWCmk9VjwAgUqhE0cqnr7mR+cfaB93eo1pkMN HbZs7xfwMmCgZvcjFleoHyaw+as7xcW5dxaepr6rIVnnj1SVXwPhlbR3V/kev2IQPTzt s34zWkgPo5RPeZe/je1P54eNXmIekpTS6AmKMW/ftmiY5WyV3M8AeougPxOoY3dk+p68 o/0DcnRHyddGM1Kii7aLm2CZEJUAepL7OYFWWVLT7GtVEey9hflA3hnKE3zV/bx5dKsP SOOJVIgf5jFEIyr05uUAXnT/qLLOIkGMgWFwyusqtZ8H1CvyXbstSOTA0fAPyDMW8zeu 4/7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737415494; x=1738020294; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fshhkaLQ8bH+zXvoToJzdWRjs3rdQjnDV/5Fs8m1GFE=; b=bpOVdjzoQceyP+f+ZoDUpbQP75Mxi+gaAKIvVBPOLX5MByobjEtDyzAWWC6giiDBhK XNqGs5DxcApWmrvjRR2PE4RrrMz0DG570vlWr3hB3Yov+9oiZKt67HiYbBEVNC13Ry03 ITSxJAluenKStrKQT6PwqLQpbZnsWI2iQ/VrH6Nr1HS/OK4B9zuOvW+BeeFnXhJgj/py Kc+Ob4nfbDs0wYvY0oP5SPR2EJV2hArAm1HZ6IPjCTxlDBqYYtaZWxgd/3yhTbiox3f7 2vEy5SHKRwgqzcUZ2tVS00y0kOi+7g0+g6fEhVSZrPRw7UiD/iqhyirrN3jSuXkTCyUj XbJA== X-Gm-Message-State: AOJu0Yyg7tm3XH9jZ7YFDfuomw/Oke30OAEr79QFZWi9ZsmjGmJ9YQWa b6ZYVvJbCYqMjn2pRaDUqKk3P9x751NE5AhwOfsXpbTXYE/QO/cL3dNyZ0wt31OOiFneqjF0JLL L X-Gm-Gg: ASbGncvo0mky+sKNC3CA/EAE1c2N5+23HYSgtVJKJuuYGncD8BDRY+tP3kZnsM7f/aB HAkgn7JYpKpbBj594JlJa0y4ggQ3JMzuwLwT8lV+djnGHehKyNr5JWT8NFE0hNRXhKu6Uew1KTS 6NQGmmm1AuESKto/eT6dFhrBQv76zjd4nYgsSMz4/8qukjrK19OR7Q+KIpTYxEPuvEb/o9k2WA7 31HrI1BzZlG55OzedfhBPaA7cHj2/UL6WmoMkcbAq1tp5ipcWpAYWPzEE2QRC7NhY6iqu+LJkpQ uj5Ar88aNN6SJ1J5iC2tAITVBxggfeXffCFub2tLFycXoaQ= X-Google-Smtp-Source: AGHT+IE6YcWExNP69kCk5GiLb+s11EWWDin/BCOoNI/TgsaSRvUblO2hY8ey0FAT/HaMu56eyxU4mA== X-Received: by 2002:a17:903:32ce:b0:215:b190:de6 with SMTP id d9443c01a7336-21c3553b341mr215884865ad.3.1737415494155; Mon, 20 Jan 2025 15:24:54 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3a87efsm65795125ad.138.2025.01.20.15.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 15:24:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , shperetz@nvidia.com, Ori Kam Subject: [PATCH v2 3/3] examples/flow_filtering: fix gcc 15 overflow warning Date: Mon, 20 Jan 2025 15:23:40 -0800 Message-ID: <20250120232442.505866-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250120232442.505866-1-stephen@networkplumber.org> References: <20250110170603.538756-1-stephen@networkplumber.or> <20250120232442.505866-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Gcc 15 no longer allows initialization of arrays with strings because the null character is dropped. Resolve by using an array initializer. ../examples/flow_filtering/snippets/snippet_match_mpls.c: In function ‘snippet_mpls_create_pattern_template’: ../examples/flow_filtering/snippets/snippet_match_mpls.c:62:31: warning: initializer-string for array of ‘unsigned char’ is too long [-Wunterminated-string-initialization] 62 | .label_tc_s = "\xff\xff\xf1", | ^~~~~~~~~~~~~~ Fixes: 16158f349000 ("examples/flow_filtering: introduce use cases snippets") Cc: shperetz@nvidia.com Signed-off-by: Stephen Hemminger --- examples/flow_filtering/snippets/snippet_match_mpls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/flow_filtering/snippets/snippet_match_mpls.c b/examples/flow_filtering/snippets/snippet_match_mpls.c index a2e429f686..8382ec7041 100644 --- a/examples/flow_filtering/snippets/snippet_match_mpls.c +++ b/examples/flow_filtering/snippets/snippet_match_mpls.c @@ -59,7 +59,7 @@ snippet_mpls_create_pattern_template(uint16_t port_id, struct rte_flow_error *er * the Traffic Class set to 0, * and the Bottom of Stack bit set to 1. */ - .label_tc_s = "\xff\xff\xf1", + .label_tc_s = { 0xff, 0xff, 0xf1 }, }; /* Define the flow pattern template. */ -- 2.45.2