From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oDYlGF9bt2KIAwAAbAwnHQ (envelope-from ) for ; Sat, 25 Jun 2022 21:00:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gEkAGF9bt2JB2gAAauVa8A (envelope-from ) for ; Sat, 25 Jun 2022 21:00:47 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B411332B6B for ; Sat, 25 Jun 2022 21:00:46 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 38C7F5F7B5; Sat, 25 Jun 2022 19:00:43 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id C47135F70D for ; Sat, 25 Jun 2022 19:00:39 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1E8F55FBD0; Sat, 25 Jun 2022 15:00:38 -0400 (EDT) Received: (nullmailer pid 248190 invoked by uid 1000); Sat, 25 Jun 2022 19:00:36 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: incrementally improve error handling in notmuch_message* In-Reply-To: <20220523233901.3506880-1-david@tethera.net> References: <20220523233901.3506880-1-david@tethera.net> Date: Sat, 25 Jun 2022 16:00:36 -0300 Message-ID: <87pmiwo9ez.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: LSQDKEXQYNNDL5QRIXTDUSCLDSCEUKIU X-Message-ID-Hash: LSQDKEXQYNNDL5QRIXTDUSCLDSCEUKIU X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656183647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=NhWh3JyjYov0hnR0eLmKSOvDdF0K2PNIv3BM4L0QZTM=; b=nZWu5imf9b58gQCWPWR1wCmzNxpXOn8tz1BbtJccBkm4RuxCYh94clNNeA2PXF2NHFh//j oMm+3zozrDQoErDf2RoGj3mrf2qR+zmNHD01IkOMWnzzfj++ejmmeBLatiuiDubrizaXMY xebrffmV20gccR+GidvsQACeiBkoIXITiRPOyQMWVg+OoxPOO/6LHoU5pwU7sRXrkk0zhU nzE4B4fdP+BDyqRrUQvjpDBDLTZduzO1azYP+rrV65zNlNZ0YuuCB+2l2fg7dwR7MXGu2v gYlYyZazMYNgtRNndX3F58aR5Bi5BcR6ZfUJn+5HD3r9MPPfNxaDeJhOMu6DPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656183647; a=rsa-sha256; cv=none; b=deTdG3mXbOcmltItY32uJvHVN4aG+UJUa50cPRfd1toCoS5ADiuT4pR7Ie9Gmzcctl/aDy NYbgLapRmlt9nCFt2lgk5ok3UsrxpoxWNwymKsZApr+dev2gk9qvV4dtvHIjPehZP5AKlh L4ODmC5mFeL8LRYOXbGabtUkm4PkGyzR/9JmAqhDLn09k6V+WWe/nK0m4EEq/yoK5A41mY AM9/zom7udZX2gURE+CBj6bFit/JopI8Q6oKmOY80tIfanDz9ZpzdzRbvrq2PyVPP/0Stg csHC+ATYRWBDQ90UhZAc12drhTiKYb6zgYUiGgT008ue4haKXTr3DQSDiezdVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.24 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B411332B6B X-Spam-Score: -2.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: spUjOB0xi1UI David Bremner writes: > There is more that can be done, but this is a start. The series > introduces a new test primitive test_private_C, for directly unit > testing non-exported functions, and new macro NODISCARD to get the > compiler to help tracking down places a particular function's return > value is discarded. > > As a bonus, drop some dead code. > Series applied to master.