From patchwork Fri Nov 18 20:00:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Rauch X-Patchwork-Id: 17815 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 62F2ABD16B for ; Fri, 18 Nov 2022 20:01:01 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AEAB06309B; Fri, 18 Nov 2022 21:01:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1668801660; bh=nKPVRAUJvvV/4HBSbquVAuEJb89mvtupVMegkqgrDGA=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=uzBrWZ/a8HpHKHGajweeSiu5O3ZtQ5F1jE3F6+ZnEUumupO1BPaP773Ha39vn8QT+ inRdd63I62zGWhU7B+rKkB7vRHTXZ1Xo2EUYAVdyOyP1vPJ3Lh1hMpjahoqwXZxE5h 4R8Caf/lK0cK1qeIQ28mYIpf9Agiw0fIqhJ8m2H6ish2FUHwT6Rss/vnpqri25MFmG DthvGYHXK3McoxtPrpWQdZn5bgFdIW+hSZMVo6ZrH8kRXsam6oVt/3lUf0q/5SaqPV EUnW+QcERne0pC6ypKtZG2pIOQsSOMeIsKo+vWdJ7rlJqKd5E9Kxlgk7p1PQbe2BDS QWyPWTVXanEHw== Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6FB936308D for ; Fri, 18 Nov 2022 21:00:59 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmx.de header.i=@gmx.de header.b="TedsBK3z"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1668801658; bh=nKPVRAUJvvV/4HBSbquVAuEJb89mvtupVMegkqgrDGA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=TedsBK3zsULdKAXg3JoBNX0KBsSZ+01egjifkvE9gmmM+n0ex7ucOgV/CQK5hBIUx xQCHfFh+MtuEg1QlVmBCsfBH8DAOHD3WJiYCTa3yqPAaVVYkG3EXbT2TfXg9ndueXM E1oSE0ZfgvwkHpsaTCSVKyAk2EtKfvYTG1SRZcOvYLxNmuQR1/o34aYBrxHAI+jOfI V7MbgIsRn0F7spXjpfy83rgf7wvf4xPByI6cRc7cMTDI5qWqnZiSD28swKHDZ6acu+ 28cdHDfUYQMx8al/VqiwDDo44sCcwoao6BGQ5KqkNxQz0tmVkO0tA1J+4qll2V2/FY H3BVs0V6eUlUg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from voyager ([46.183.103.17]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mf0BG-1pSSY71qv4-00gadd; Fri, 18 Nov 2022 21:00:58 +0100 To: libcamera-devel@lists.libcamera.org Date: Fri, 18 Nov 2022 21:00:46 +0100 Message-Id: <20221118200046.51305-1-Rauch.Christian@gmx.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:vyGmDHmjGVJnRiszKj0p71iFLrDNFXWvN/m87O5PbzdpL0wy4Ji Xc/td5jtUEtf0I1VFBGZ8e8c2IyffdYvbhHOmZoO5NMQOR/aAC2Vrd285tamLp1YzERY5aN bdYm+gIcy9OY+ay+bPFvADhsBzEY7uQP8fROBwPW4/jMpsCy38jGUFzwOAN9GJigtX9PLn9 7lEKYsVlwqqgake8+rY4Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1; M01:P0:KMafKLR4IvQ=; GrifxkzVC7KuEpZjGcHM99S7qEe 7XxpIvg1LX8g1bnnP8FGYGiSaB+K0Q1qqwEViQcmqaqjIdwgpr3wVaVmzQ/njiHEio+t0pgq1 vqVrcuBiWGQKwx25Ya2qQhev0Ni+/46E1nti9NM2EOMh1aAv/6iOInS40Ae9LVkZTDrZOwmHG w3ovoMasrLIDSYaGOGC0LgXAihe0d5G+r2zRNgSopUeE4VKYj6CpM0pWRQBRGdQJl87hJiTi/ idUC4bcGttzFgRjOU8lTMP+haDcvldjiEtCprkorZRLodtjqW54Kah6xAYj7OPqIZeedIuzOU Mmnx3wwEPXpKRXKfwhkP4UsVfPkPuhIApN+dhzc9tygsrR0+xydevrKqdyMA8P/LyYnFhtfb9 2rljEMHhSdjZmdr6t8wjNFhcq4CfUlgwCvymn+k+rNzzl7UOuC1f4NHpLPM9qIUlNU4b4KcVb k0PAFXSMoSVObJ3Vhg7yAPeCGxEw7TzSLut2UI/mFtd1ws+Nyy3jitVhVc/HJuyU4xo7U0V+o 3eiFHFXZimtSPvt7b6ztMl2Gr2QJ0JPqVF4PQGKPwyzK4a6kpGifvTbSv236y9YsLu/bhRES/ 1tdLcVB10BgRJ8+3lMJPEG9mIlUMiBWJfifBALmOh6d1kVbxRfhfsQrSTnvVi4sFMnq4Ccttp 6f/aLSk+cPja/xt7mYUMKTFTCBs8rDwK9F5Lmc2Sm554iId82WV12OLhiHmII8DQlr8jdNj7g zOkHlnEtvikzXkwiotqfooiAU9j/HTXvHRpWeh9wEYek7Zhj82yR47s3De4OHboDXLfJXB19b nY5QtlHAFGwepevj0Z0quqCJygJTmw10NbnQJ8JzcOUUl71c84OOMUHQenGgHKaXEyxLd+498 QYntdsw42tS+YuB9ysdfJmdTE8ce0ZX/VDAq64D3yHSj0moPUtxqgOXEFTubr0CAy+UVc3hmK DNvRmQ== Subject: [libcamera-devel] [PATCH] kms: void-cast 'request' to avoid 'unused-parameter' warnings 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: , X-Patchwork-Original-From: Christian Rauch via libcamera-devel From: Christian Rauch Reply-To: Christian Rauch Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The parameter 'request' is only used in an assert. assert is only defined for debug builds and release builds will not use the parameter, resulting in warnings messages only for non-debug builds. Fix this by a no-op void cast. Signed-off-by: Christian Rauch --- src/apps/cam/kms_sink.cpp | 1 + 1 file changed, 1 insertion(+) -- 2.34.1 diff --git a/src/apps/cam/kms_sink.cpp b/src/apps/cam/kms_sink.cpp index 754b061e..de0af51e 100644 --- a/src/apps/cam/kms_sink.cpp +++ b/src/apps/cam/kms_sink.cpp @@ -521,6 +521,7 @@ void KMSSink::requestComplete(DRM::AtomicRequest *request) { std::lock_guard lock(lock_); + (void) request; assert(queued_ && queued_->drmRequest_.get() == request); /* Complete the active request, if any. */