[SeaBIOS] [PATCH] vgasrc: Don't use VAR16 in header files to fix gcc warning

Kevin O'Connor posted 1 patch 2 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/seabios tags/patchew/20211218170432.3840462-1-kevin@koconnor.net
vgasrc/svgamodes.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[SeaBIOS] [PATCH] vgasrc: Don't use VAR16 in header files to fix gcc warning
Posted by Kevin O'Connor 2 years, 4 months ago
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 <kevin@koconnor.net>
---
 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;
 };
 
-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;
 
 #endif /* __SVGAMODES_H */
-- 
2.31.1

_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org