From patchwork Sat Jul 23 16:24:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 36923 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1649:b0:8b:613a:194d with SMTP id no9csp1103779pzb; Sat, 23 Jul 2022 09:24:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1seJ/OdIMlHIiYQhIZBHsmtj0CUm2pw1hzE6T9xXJZBXTldRhfjCqiUzVYcaFl9eOwXXfUv X-Received: by 2002:a05:6402:2406:b0:43b:cd69:9cdc with SMTP id t6-20020a056402240600b0043bcd699cdcmr5084783eda.207.1658593490287; Sat, 23 Jul 2022 09:24:50 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hr22-20020a1709073f9600b0072b5adee782si10297472ejc.478.2022.07.23.09.24.49; Sat, 23 Jul 2022 09:24:50 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=IWX+vv07; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8105168B7BF; Sat, 23 Jul 2022 19:24:46 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03olkn2067.outbound.protection.outlook.com [40.92.58.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A247E6802B5 for ; Sat, 23 Jul 2022 19:24:39 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NmkEBpUqyVfEdYOLhuznoCTFs0WWH2sq8sMOeSurWCumIrFEICfDXsW4L4kKFeP+7Iy8VLiksfYHd5Ewic08875pDCI88Aa4SAwiYxzWKZ9dMcFFYa+q3YNVSAhHFSIltiJZYEZIDU9km8IR9yXGiT8bnr7CdvmeCfVfUWdzP1WAcnI+YuU+feYOc6w12xxVDpeSwSVS5XfjBDdtBGMbiqGqh75LvnumnZ55F4xFiw1fEUt9OlyusX/NXo4YvInh9IPGThoNy/Jx2HhcYMPe47AwcOD4HI/T54csaPXnhNs3Ve1MV63hJPXENR52a+UjC+bemJosV/h/V2F3q6m/oQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FVCddRdIEoF71IFp02AZ07Jto5JDRSkwoCXIVGSKE0k=; b=Mlx47VtnRbVoy7Fq3o5NEqUVnAFTt+s2/Coi6DeAp32zAjvw9riCocQP5WY71XikEnJEMmC46RbjvsVM2ss4pbXxJYuTtHn9QMYNtfJVpuXEG2E7FJm42qCJSObF8ZSPkJN8aG64V+VRDwWsbwdErpjDHbEjnH4MuUmnuhXDuA7zgFWAURL46MfhP07xzCmmFa3gYyz6rX0i4o5JIdh7ajj+Xd1Y0IxjMnEfHw2ItnoB4A6lDihLYSHqCEbetOtsvYeQBukJWXWKmJZzWfk3LCvHtdgLL4BiTJOAl4wkX6RnIRgjiUyQdlPs5XhOhwk74ia+Axgz0f8FhBx2dngmwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FVCddRdIEoF71IFp02AZ07Jto5JDRSkwoCXIVGSKE0k=; b=IWX+vv07eY7RWjgtNbV9gS2dL4bf4+bwSz15NVHTcjq0W+fZE461xjcAL84pfX2iAfISGOgxYKAdNFHjiAZSeNcUJsdKKS6k+tp0eDbPMaLxEnj5FoNibxGTfXP64eM4m+pnnwiu4xqyb3mZG9NDy59xeyGM0Ad1JVCXFgmtXmINUGiklpdEo1b/tOchWTWvilzRFJ6SkQxtn9PWVX3dZj5vTVOmN5r1trO6z4NpY4xH4XYtNRDetgvQA5UN9WXfPgRUJXIEvcJJGtfbu5tlZ7xClliQ/oUeWTONkvbDuDUz3onG0eRJ0MJgmBi4pSyOzr6s6oZoNwVj04lMd3oXTg== Received: from DB6PR0101MB2214.eurprd01.prod.exchangelabs.com (2603:10a6:4:42::27) by PR3PR01MB7083.eurprd01.prod.exchangelabs.com (2603:10a6:102:7b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18; Sat, 23 Jul 2022 16:24:38 +0000 Received: from DB6PR0101MB2214.eurprd01.prod.exchangelabs.com ([fe80::210e:b627:bcc9:8c46]) by DB6PR0101MB2214.eurprd01.prod.exchangelabs.com ([fe80::210e:b627:bcc9:8c46%11]) with mapi id 15.20.5458.020; Sat, 23 Jul 2022 16:24:37 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 23 Jul 2022 18:24:29 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [whhorv/etBmu5JpTtyEmGjd3L5gL2fMS] X-ClientProxiedBy: ZR0P278CA0188.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::20) To DB6PR0101MB2214.eurprd01.prod.exchangelabs.com (2603:10a6:4:42::27) X-Microsoft-Original-Message-ID: <20220723162429.577408-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b3d97e9-b37a-476e-4595-08da6cc7d61a X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiToJ1zOhCTJMxCCEpyIerpR8dgqo0trmclAlOrnMwIjMPyIOZsa5U3IOpFRf0xovdvrgkbRfM44rk/p5KzeC0C2rJMn9e3HTh4NR4VVU9E6fS3J5qJgIiW+oIMO0EpH5ofrn/8ArKQG5AzlphJZJfvv287t7VEDuVOIZ2kWZIoXgLT+/wL76wowYkwz6Ecn9Ri71AX0CC/4G9+lkcRaVSMODR3t5ZcQvRknEN4u9p7rBQHsrsikpmomKdiQCtorHG9p39YwoQ5BZj8T4S9aXH8h0+U6W0MB7eAlCQPdkuvzCh6sbcTcSychX3tmvf0RZIAGzaca6V/MYSsHV6EdAdE4a9Ro21uEiUCpJgx2YQ8yyGp0kxhVKzJLfUtT3BTOawZNG/hRSHEBMumBUgFOZqmve6CwkElV1QLRAtTfqDRUzBNqFu7lsoqk1oIMZAOfZLN7vzmgL716jw8bxnlrvtGisWRxJ1LXaOdFilL2L2r+NxVzYy/BcC6orxpzA7jlTgO8I4QB9pPc633PJpSfYOrFNIBnX18F2ZlLBqO94NIzGYmwexRekPE0Y9FtAkqo9WP6Uwg66bkbKB5VPX+ZUa+K9e54AuJXTnIwMKf6RoKAEtLpMCZEFg0bhq6D80AZlQtNwJueBBqW0+7KJ29UGzMSwStoQCOLmBsJJ5DiMCYwzN7/vs1Dgi/oyLf7enrsdSTmuJpDHef5Qps/Ll33XT++34KJ+cS27BcQnF6tTSeUea1bRKT7vjePQ03LzbXWlCo= X-MS-TrafficTypeDiagnostic: PR3PR01MB7083:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XAShyBih5gnDKnUFps2mNkBz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bK3OD+tZDQa769WdgF40fbr4IjDXwQt/mD8TJ7RKxpROXX?= =?utf-8?q?Jjxn1Xiq5MafPgs8JJMcdYxvhQmU9IzTb5IztX6gPeq1/PU61RhKuIwBxxi4=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b3d97e9-b37a-476e-4595-08da6cc7d61a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0101MB2214.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2022 16:24:37.6433 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR01MB7083 Subject: [FFmpeg-devel] [PATCH] fftools/objpool: Don't use return with expression when returning void X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: uwKHKSBXhbKY Using tail calls with functions returning void is forbidden (C99/C11 6.8.6.4: "A return statement with an expression shall not appear in a function whose return type is void.") GCC emits a warning because of this when using -pedantic: "ISO C forbids ‘return’ with expression, in function returning void" Signed-off-by: Andreas Rheinhardt --- fftools/objpool.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fftools/objpool.c b/fftools/objpool.c index b1561ecd69..06e4f069a5 100644 --- a/fftools/objpool.c +++ b/fftools/objpool.c @@ -101,11 +101,13 @@ static void *alloc_frame(void) static void reset_packet(void *obj) { - return av_packet_unref(obj); + av_packet_unref(obj); + return; } static void reset_frame(void *obj) { - return av_frame_unref(obj); + av_frame_unref(obj); + return; } static void free_packet(void **obj)