From nobody Thu Mar 28 12:29:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=koconnor.net Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1639847094740262.49540425458486; Sat, 18 Dec 2021 09:04:54 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 3CB4F16E3D2A; Sat, 18 Dec 2021 17:04:51 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 2422B16E3D20 for ; Sat, 18 Dec 2021 17:04:36 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Sat, 18 Dec 2021 09:04:35 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id 16sm10381806qty.2.2021.12.18.09.04.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 09:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koconnor.net; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pw8F8kF+Vb66T91JGmRrCN/s50uGiA63jl4pxWzqkT8=; b=W1n8eqeszvDn3BzFEP5GEGISIR2upKazGy0HeSGuNOKQlvmCCCBD/I/e2DRqZ4VQbF SKXD5JbSDKWO1+Q+5AwlvB9AmX9puMUdgFcImhUrBKng7oD+cvXxqB/6MVo3pzXFLZFJ pZtzJ6Vx0EzK8RwcDFXztywCVgAcKTTf4PjIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pw8F8kF+Vb66T91JGmRrCN/s50uGiA63jl4pxWzqkT8=; b=R9fv79/Iv99iwD/3t48u46G7sRrdzJttX47stnAecaYHI/UewOFSpVbRKT04/5+/YP 9hcSLHBF/qgeokNyNFJAmQIic54yFwyTS2+syPzA0tKA6OvlbGiUlFiCgX8KtbapmlUO i3oDKcrYcJV88r9vUtly6+3jxVEPNa7J5yRL9xoDpQcF6FF8XlaEd/h3A/Zr9MW/71b7 ulDphsiAL/b1KYbGLW2Z6j0UKzhD3DisM+QcRR9J7GERlnDtnRtBUK0Zx9nfDg+UaSTK Hcg2tyTJmsjVsyAtr2euuMElBc6QoQEna9MHc9EAYqJrAeg0yA26MrC7o+7rQM4JNqRh 5Yhw== X-Gm-Message-State: AOAM533vm0DhtH0dTjSQpb5Tn8Jha7yAu6RD7r6v3VzUHHW8GvWBgKOv dujcJDTPkTENhHQ+qEZJ1MAX2kYo15culzYY X-Google-Smtp-Source: ABdhPJzDQRWP/DacnV9684h3qcborAon7aCIxfRdsLNQr0a90yUeo3y3Sj/MZtRKuIbBLv5jbKkQDg== X-Received: by 2002:ad4:5be5:: with SMTP id k5mr7080731qvc.19.1639847074991; Sat, 18 Dec 2021 09:04:34 -0800 (PST) From: Kevin O'Connor To: seabios@seabios.org Date: Sat, 18 Dec 2021 12:04:32 -0500 Message-Id: <20211218170432.3840462-1-kevin@koconnor.net> MIME-Version: 1.0 Message-ID-Hash: 7XNBWLWV5XU23RK4Q6QVK4FIOIMVWWYV X-Message-ID-Hash: 7XNBWLWV5XU23RK4Q6QVK4FIOIMVWWYV X-MailFrom: kevin@koconnor.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.5rc1 Precedence: list Subject: [SeaBIOS] [PATCH] vgasrc: Don't use VAR16 in header files to fix gcc warning List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1639847095189100001 Content-Type: text/plain; charset="utf-8" Some versions of gcc complain when VAR16 is used in both the header and C files - use only in the C file to fix the warning. Signed-off-by: Kevin O'Connor --- vgasrc/svgamodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vgasrc/svgamodes.h b/vgasrc/svgamodes.h index 782d30b..6ac1d64 100644 --- a/vgasrc/svgamodes.h +++ b/vgasrc/svgamodes.h @@ -6,7 +6,7 @@ struct generic_svga_mode { struct vgamode_s info; }; =20 -extern struct generic_svga_mode svga_modes[] VAR16; -extern unsigned int svga_mcount VAR16; +extern struct generic_svga_mode svga_modes[]; +extern unsigned int svga_mcount; =20 #endif /* __SVGAMODES_H */ --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org