Skip to content

Commit

Permalink
vgasrc: Don't use VAR16 in header files to fix gcc warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KevinOConnor committed Dec 18, 2021
1 parent f9af717 commit 0a1e767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vgasrc/svgamodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 0a1e767

Please sign in to comment.