From owner-dev-commits-src-all@freebsd.org Sun Jan 10 05:59:41 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 955E54EF1A8; Sun, 10 Jan 2021 05:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DD5lK3gNhz3HjQ; Sun, 10 Jan 2021 05:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 717352342A; Sun, 10 Jan 2021 05:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 10A5xfZF006692; Sun, 10 Jan 2021 05:59:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 10A5xfr7006691; Sun, 10 Jan 2021 05:59:41 GMT (envelope-from git) Date: Sun, 10 Jan 2021 05:59:41 GMT Message-Id: <202101100559.10A5xfr7006691@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: e6d98805103c - stable/12 - syscons: scrnmaps: appease -Wmissing-variable-declarations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: e6d98805103c51dc384ad0708e66642ce4a6746f Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2021 05:59:41 -0000 The branch stable/12 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=e6d98805103c51dc384ad0708e66642ce4a6746f commit e6d98805103c51dc384ad0708e66642ce4a6746f Author: Kyle Evans AuthorDate: 2021-01-01 17:53:47 +0000 Commit: Kyle Evans CommitDate: 2021-01-10 05:59:31 +0000 syscons: scrnmaps: appease -Wmissing-variable-declarations scrmap is only used in the one compilation unit in all cases, make it static rather than extern'ing it. There's little benefit, but it's easy to do. It's unclear how this hasn't failed many builds before now, since it should have cropped up sometime around deeper hierarchies getting a default WARNS. (cherry picked from commit fb6bc290fb342864f5362ab9cef7dd214df05cf3) --- share/syscons/scrnmaps/armscii8-2haik8 | 2 +- share/syscons/scrnmaps/iso-8859-1_to_cp437 | 2 +- share/syscons/scrnmaps/iso-8859-4_for_vga9 | 2 +- share/syscons/scrnmaps/iso-8859-7_to_cp437 | 2 +- share/syscons/scrnmaps/koi8-r2cp866 | 2 +- share/syscons/scrnmaps/koi8-u2cp866u | 2 +- share/syscons/scrnmaps/us-ascii_to_cp437 | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/share/syscons/scrnmaps/armscii8-2haik8 b/share/syscons/scrnmaps/armscii8-2haik8 index f6bc35d74701..0546204b9164 100644 --- a/share/syscons/scrnmaps/armscii8-2haik8 +++ b/share/syscons/scrnmaps/armscii8-2haik8 @@ -27,7 +27,7 @@ * $FreeBSD$ */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/share/syscons/scrnmaps/iso-8859-1_to_cp437 b/share/syscons/scrnmaps/iso-8859-1_to_cp437 index c18e62f04667..80522c4315e2 100644 --- a/share/syscons/scrnmaps/iso-8859-1_to_cp437 +++ b/share/syscons/scrnmaps/iso-8859-1_to_cp437 @@ -25,7 +25,7 @@ * $FreeBSD$ */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/share/syscons/scrnmaps/iso-8859-4_for_vga9 b/share/syscons/scrnmaps/iso-8859-4_for_vga9 index e096bdcd771e..5afbe36ee397 100644 --- a/share/syscons/scrnmaps/iso-8859-4_for_vga9 +++ b/share/syscons/scrnmaps/iso-8859-4_for_vga9 @@ -31,7 +31,7 @@ * only at 0xC0-0xDF area. */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, diff --git a/share/syscons/scrnmaps/iso-8859-7_to_cp437 b/share/syscons/scrnmaps/iso-8859-7_to_cp437 index 12c467a360f2..7c1b49dba2da 100644 --- a/share/syscons/scrnmaps/iso-8859-7_to_cp437 +++ b/share/syscons/scrnmaps/iso-8859-7_to_cp437 @@ -2,7 +2,7 @@ * $FreeBSD$ */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/share/syscons/scrnmaps/koi8-r2cp866 b/share/syscons/scrnmaps/koi8-r2cp866 index 15f2847fa9b3..d8d86f28e3e8 100644 --- a/share/syscons/scrnmaps/koi8-r2cp866 +++ b/share/syscons/scrnmaps/koi8-r2cp866 @@ -26,7 +26,7 @@ * $FreeBSD$ */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/share/syscons/scrnmaps/koi8-u2cp866u b/share/syscons/scrnmaps/koi8-u2cp866u index 7fd86ad51bb7..a4e583da44a8 100644 --- a/share/syscons/scrnmaps/koi8-u2cp866u +++ b/share/syscons/scrnmaps/koi8-u2cp866u @@ -28,7 +28,7 @@ * $FreeBSD$ */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/share/syscons/scrnmaps/us-ascii_to_cp437 b/share/syscons/scrnmaps/us-ascii_to_cp437 index e1155aa137c4..5e7d631237b3 100644 --- a/share/syscons/scrnmaps/us-ascii_to_cp437 +++ b/share/syscons/scrnmaps/us-ascii_to_cp437 @@ -2,7 +2,7 @@ * $FreeBSD$ */ -scrmap_t scrmap = { +static scrmap_t scrmap = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,