From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23753 invoked from network); 1 Jan 2024 18:34:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Jan 2024 18:34:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1704134050; b=KpmPtWqDC/89HcQDgpZ9Y3t1yiaGNZO7x3DlpzLf2lKa5DxxtvoZJRZb8eKkKZy9jiY5NO5SOj gvHyO2xj+Ii+ug9dd/GMCcbWJF41//cEAayK2Xhb4ftaWfvZFRs5AnCfcZP374Eir6LYUQISN8 BwCkFDMyHTXNgS4fbunm6X4eiv++zXUmcmiqVf9iEMRbvHDuZduLaPRBo51xJVGZeO3i1ZgltJ Gokjlh+xjo5mghPLcEkvViokFzr8zJmQcoNSzY4qx7U9GrAO/tYp/B0G0dPXNE2u/Gkk8kWeHF F3SMzpQ5kmAcdcEu/LfHXpyjXFLxa3/mFvWP8hbyCF7wKA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (s1.jo-so.de) smtp.remote-ip=37.221.195.157; dmarc=none header.from=jo-so.de; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1704134050; bh=0d0shfYUA9qP2KESiXk7jL4ZkK2Wx67RTYc2a5xex/4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:DKIM-Signature; b=HOQaR3vS4qE/KboH8zy+0KaHxvm5RNDJAfqXdt11Qzr/SzTUjGnRVDKYVx+PNuSXdHPf7Cb5BP z9i9KimDrsKVErdTu9iOhC3gM/kka8Xzk5SfNWdDQur3tCVzxOVyeBZVfITtO7rpRN0pcVOqCc 5NeuxUpKFqHkQij6yHdwOwEFhGZrS/ngyX3zHTFbqxLBe+9WjiCCR7L9KURFKSuTHb/zFLDOlT 4kuo92689S24Xl1EsQ1LeHmIW+p0sEeptlpWRJ3QyIooV60LBpaEJ81iVUT5zMR7H3FTO56z0E LaJHhxmnqE0e3yeWAgpLtH4PN3TS5HFusNSO1ZtweG4chg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=o01j3mwANiE8KRI9DVxTILKk/9+dtGWmc0Xeqnx7kZU=; b=mKGIxi4hd/knYVs6kWuwVLYepx C32Phw59BESr9gLKpGDDUkTmo+jif0r6wLGDi065o/fblXSs7jKyukanEuN3ZDcd21gTSul6PnIQJ hyVjrMEnZGr6xceR+80rOriidDvWP1iaTlOJYeOR9ycqGWvwZfwPGh9vp662igIReysIkDntMJhc/ qqUuGXKFzxKBRjR6tjOUy3+dDneZ6NdCHCOYYmOAxvBsapRUnwDKTDQA1jBqly0eHzcRuQoEHKDyD Q+gt4kVb3+V+LtHK2fXN1A+QarpN9OseMdYGNsj161vNyMOGGC2QFc7SdsE6Mzcq4ACpmRJ1vFWFx XIqvYhZw==; Received: by zero.zsh.org with local id 1rKN74-000O5z-HP; Mon, 01 Jan 2024 18:34:10 +0000 Authentication-Results: zsh.org; iprev=pass (s1.jo-so.de) smtp.remote-ip=37.221.195.157; dmarc=none header.from=jo-so.de; arc=none Received: from s1.jo-so.de ([37.221.195.157]:60555) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rKN0A-000Lth-Ao; Mon, 01 Jan 2024 18:27:02 +0000 Received: from mail-relay (helo=jo-so.de) by s1.jo-so.de with local-bsmtp (Exim 4.96) (envelope-from ) id 1rKN0A-0040FW-0K for zsh-workers@zsh.org; Mon, 01 Jan 2024 19:27:02 +0100 Received: from joerg by zenbook.jo-so.de with local (Exim 4.97) (envelope-from ) id 1rKMzw-00000001ohq-2Efz; Mon, 01 Jan 2024 19:26:48 +0100 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= To: zsh-workers@zsh.org Cc: =?UTF-8?q?J=C3=B6rg=20Sommer?= Subject: [PATCH 3/6] zle_vi: Mark variables with const init as const Date: Mon, 1 Jan 2024 19:10:18 +0100 Message-ID: <7dab35d424523f5749e78edd48fa6297680ae778.1704132620.git.joerg@jo-so.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <8a1e39c6b8f061ce6d2e37c86e6d889309250f13.1704132620.git.joerg@jo-so.de> References: <8a1e39c6b8f061ce6d2e37c86e6d889309250f13.1704132620.git.joerg@jo-so.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Seq: 52441 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Because these variables are initialized with as constant string, they should be marked as *const* to make the compiler running with `-Wwrite-strings` more happy. --- Src/Zle/zle_vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c index 24d9de6ea..6692df830 100644 --- a/Src/Zle/zle_vi.c +++ b/Src/Zle/zle_vi.c @@ -1014,7 +1014,7 @@ int visetbuffer(char **args) { ZLE_INT_T ch; - ZLE_CHAR_T *match = ZWS("_*+"); + const ZLE_CHAR_T *match = ZWS("_*+"); int registermod[] = { MOD_NULL, MOD_PRI, MOD_CLIP }; ZLE_CHAR_T *found; -- 2.43.0