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 EC46EA0A0C for ; Sun, 13 Jun 2021 09:37:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE0014003E; Sun, 13 Jun 2021 09:37:39 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2041.outbound.protection.outlook.com [40.107.93.41]) by mails.dpdk.org (Postfix) with ESMTP id 61DC44003E for ; Sun, 13 Jun 2021 09:37:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cur/JIKfYiVnXY+nLfoixzl8ZzxqlUjW/uA1SMyKOGfECsNz4f5/l9ro8jOmXFUWT8j0+dn7EzMy2tCiFLa5vRJRJyy6uoOyIy5Bdr1egdBWH2s2R6l7cbawmnLI/x3P1LUkVx+6gk1Ue79c+yAcBkWW2baSO+VvA7Zpj3kLx8CiSUS3o/dWBqXcpeVRXVS+FxGX2tvSG/I5HnAanayRzhhTQM/7zYXcw6P6UPlknldCeO+yaLs0816T9psyRpaJlfya4auPVYiYCE10a0//4ESLtmBvcooTvMQZEd46ncXCZ6Mth850R6LqGJnF8YbBPBbVGGIRsiepniC7zXMTTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=51ASAz/9OF0N4eZVBulLf4OnXrXzaubRNDVzHAiKlD4=; b=BqRdWcNugcXsCuWTHZLutzTWDGAx4mgE92ZT16KI/jWbhqvwVpYUxNpAYGEZdUkOboxp0RdPE6ROph7Bz4679PqnRd8eRUYo6LDSP3vsBmboxdJCdZvjw3tMiLfv8nsODbrojWY3DR+zQYdgOE0oWQavtOX0nWoZb9PHJNbjuUsMSrsFFMe2NQSlTfk1/M8Emu862D/auInZEFC4TmMtsFb868mHjo4eXX2ILgtbRFD7nZs+/v91qWKK5yfNpD891ugHcKNNb67K1/lwLwMxGC2sNcHoxUkKgFRbZ1FkzOKfeypPHHbAX22nmSQVbG3EXKa0iWrDTSN80ArLE/Z96Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=51ASAz/9OF0N4eZVBulLf4OnXrXzaubRNDVzHAiKlD4=; b=qJNb+ztcAppnzUZukFpAUJ8j9cBadj6d8VhoMjQ4q15rBvwlzVxWoI9kmqljdai1lTUWVNtxP6sflkeTciDATIoR8MfJMnH364ok6eZY7Itsns5luonD2XNRy2b/P+dA0TpmOl8xDpKtgjEi8sPozbRheL7VlUON14HZ03Pqjy7vK6d2W+bOKSceR9N8n2wtCwhgWRujudXqdy7Wqe+2rg0tfcsM4zx7bD16LQF5f6mQrLbZjHIl3nK63izXDNKfb3ytx2WtkXF8vyYB0+gngUFB4AaIuO6YbhJSvDnlCrQXuAs/pX952yCIJihDmVqWAG/Up0WszU0T71KpWiOUIQ== Received: from DM4PR12MB5373.namprd12.prod.outlook.com (2603:10b6:5:39a::17) by DM6PR12MB5566.namprd12.prod.outlook.com (2603:10b6:5:20d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Sun, 13 Jun 2021 07:37:37 +0000 Received: from DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::ac75:9b9a:a03f:1676]) by DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::ac75:9b9a:a03f:1676%3]) with mapi id 15.20.4219.025; Sun, 13 Jun 2021 07:37:37 +0000 From: "Xueming(Steven) Li" To: Kevin Traynor , "stable@dpdk.org" CC: "bluca@debian.org" , "christian.ehrhardt@canonical.com" Thread-Topic: [19.11 20.11 PATCH] test/cmdline: silence clang 12 warning Thread-Index: AQHXXefbcYajDgUs90Krhor6vKnO6KsRkfyA Date: Sun, 13 Jun 2021 07:37:37 +0000 Message-ID: References: <20210610110028.230803-1-ktraynor@redhat.com> In-Reply-To: <20210610110028.230803-1-ktraynor@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [180.174.129.228] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e8e13cf1-fd0f-4f68-ed44-08d92e3e1dc1 x-ms-traffictypediagnostic: DM6PR12MB5566: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:37; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: a7IKgoTh65Kc/CzWQxGct6AsjwbIurFQzct46xr4lUjqb+CBWZu55r8NcWI6qisIERMJtbe6UDezwcDiNLwNMlAVClZeFjyCnZlQM3ahjNndY47m41uByNogYeA4Q559USWlXqwPr3b7o+I4T1sECTUNqYm2k9F9UM8wVW3DHlhtkG7gTL7rghCldRdTcIrYqVCX+MluW/9evMQRW/FPcgi+gAV7ph67Xg/Xc9COmd5a8Mh3mawjUWXospb3ll4dfj0jeyRtVXEcyI5ul9mmBoyGLcmchO6DTrGGTUdCZEt9YrTLasv+R9kScEj/u1GDNuNt9WdIJpuN43HQzbtLJVcIYjEQtMpidz2++bgjeG44CG3ijcAHGyCfObgf81Z+dRdpTlzTEN2IydK8wmYIUBku3WNs8cNy9V2oa8rxZlQYgHjUumfAn/Exs1dTPDASwuyDaHBvi4pV71jcKcAZDSq5rhIQyET1MCGzHIXQUWMKsL9/HIQ5fIjC1ee9opVeolbEo6cS/RQdHbmItf0Ol7pRgGjFgP4dG4EF3cZfz7M5IJGvizuRFRgcrZ/2OcpuO4hqtnWbNtXka5VYZLmgtA3EMbgqbdNeiiCE6G9lMow= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5373.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(39860400002)(346002)(396003)(366004)(66946007)(66446008)(64756008)(66556008)(52536014)(66476007)(2906002)(83380400001)(5660300002)(33656002)(76116006)(26005)(54906003)(478600001)(122000001)(316002)(9686003)(55016002)(7696005)(8676002)(4326008)(6506007)(53546011)(71200400001)(38100700002)(86362001)(186003)(8936002)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qNoqaqqZy0pqrwNd7dyanma+yPRGJ1mMjZZw83gTm+ffdopaiOa56UG0QDnK?= =?us-ascii?Q?Ito+2Iytdoce4zgRs1vRc97Ozmc23mTFSftzWQKO5fHLkOk84yCE0VhyW7IG?= =?us-ascii?Q?ZlkfJl6Uu54+7A8fZx356KiMw75hxyH0CIChyB1BuL6R6vYpz9Mj+dFiUl3N?= =?us-ascii?Q?cjrNj/OnnnLfLaBVNB9n6khsfhDTjFuQ+7lG61kvCdJvN/hcWgcJmq+9uDiv?= =?us-ascii?Q?l16V/J0IR0Hbf25uzP+scf1hZoVO0HTuDxwbNKhqWTWkDOEiPpY/LyYQuLL1?= =?us-ascii?Q?cEDErAuzAflDoZjfTmp1Mk3IwSOblpm9cSYBrkfF8pCiYjAe+WEdiV7m7Zym?= =?us-ascii?Q?zPTLb+FxS3zr5NYxMudNlzb0BwKe9vpfzl3CRDDGT01cmhBKY1gwkedQHNuK?= =?us-ascii?Q?1G+5bUdblmMg2WUGZ63QzJl6BL36pC8yNbvxceFpQWNW1e9KjttvbAfHlmdA?= =?us-ascii?Q?R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ange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5373.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8e13cf1-fd0f-4f68-ed44-08d92e3e1dc1 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2021 07:37:37.0688 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: A/MRPy47uAraslpj6ObDBMu78n2my7MoM6ypBarT34AdycB5FNp9As2hmM9lJAUm+noXgiIXS1SGVNB4jvULog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5566 Subject: Re: [dpdk-stable] [19.11 20.11 PATCH] test/cmdline: silence clang 12 warning X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Applied, thanks! > -----Original Message----- > From: Kevin Traynor > Sent: Thursday, June 10, 2021 7:00 PM > To: stable@dpdk.org > Cc: bluca@debian.org; christian.ehrhardt@canonical.com; Xueming(Steven) L= i ; Kevin Traynor > > Subject: [19.11 20.11 PATCH] test/cmdline: silence clang 12 warning >=20 > [ upstream commit 5ac070cfed17111ccaf5aee0cc08119ebb1c4e5e ] >=20 > clang 12 gives a warning about string concatenation in arrays. > In this case, as it is a long string test the strings are concatenated. > Add parentheses to indicate this. >=20 > $ clang --version > clang version 12.0.0 (Fedora 12.0.0-0.3.rc1.fc34) >=20 > ../app/test/test_cmdline_num.c:204:5: warning: > suspicious concatenation of string literals in an array initialization; d= id you mean to separate the elements with a comma? > [-Wstring-concatenation] > "1111000011110000111100001111000011110000111100001111000011110000", > ^ > ../app/test/test_cmdline_num.c:203:3: note: > place parentheses around the string literal to silence warning > "0b1111000011110000111100001111000011110000111100001111000011110000" > ^ >=20 > Fixes: dbb860e03eb1 ("cmdline: tests") >=20 > Signed-off-by: Kevin Traynor > --- > app/test/test_cmdline_num.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/app/test/test_cmdline_num.c b/app/test/test_cmdline_num.c in= dex ec479cdb3a..9276de59bd 100644 > --- a/app/test/test_cmdline_num.c > +++ b/app/test/test_cmdline_num.c > @@ -201,6 +201,6 @@ const char * num_invalid_strs[] =3D { > "-0b0111010101", > /* too long (128+ chars) */ > - "0b1111000011110000111100001111000011110000111100001111000011110000" > - "1111000011110000111100001111000011110000111100001111000011110000", > + ("0b1111000011110000111100001111000011110000111100001111000011110000" > + > +"1111000011110000111100001111000011110000111100001111000011110000"), > "1E3", > "0A", > -- > 2.31.1