Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2021 07:02:21 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 763bcebe0b6d - main - lualoader: remove shadowed local from graphics:drawitem()
Message-ID:  <202109090702.18972LAu040541@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=763bcebe0b6d5e53e5c8940a677de662e5652b6d

commit 763bcebe0b6d5e53e5c8940a677de662e5652b6d
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-09-08 21:32:53 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-09-09 07:01:50 +0000

    lualoader: remove shadowed local from graphics:drawitem()
    
    for loop vars are local already and distinct from this earlier
    declaration; remove it.
---
 stand/lua/drawer.lua | 1 -
 1 file changed, 1 deletion(-)

diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua
index 6324c2262c11..b592b416033d 100644
--- a/stand/lua/drawer.lua
+++ b/stand/lua/drawer.lua
@@ -377,7 +377,6 @@ end
 
 local function drawitem(func)
 	local console = loader.getenv("console")
-	local c
 
 	for c in string.gmatch(console, "%w+") do
 		loader.setenv("console", c)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109090702.18972LAu040541>