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

Dec. 18, 2021
6:04 p.m.
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
1277
Age (days ago)
1277
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kevin O'Connor