From aa8bf6041ea972b1bc533561310b1245b11436c0 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 30 Jan 2018 15:58:28 +0000 Subject: [PATCH] Declare static functions in header file as static inline, as that reduces warnings quite a bit. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4071 --- src/ints/int10.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ints/int10.h b/src/ints/int10.h index e9b622b0..bc599125 100644 --- a/src/ints/int10.h +++ b/src/ints/int10.h @@ -149,11 +149,11 @@ typedef struct { extern Int10Data int10; -static Bit8u CURSOR_POS_COL(Bit8u page) { +static inline Bit8u CURSOR_POS_COL(Bit8u page) { return real_readb(BIOSMEM_SEG,BIOSMEM_CURSOR_POS+page*2); } -static Bit8u CURSOR_POS_ROW(Bit8u page) { +static inline Bit8u CURSOR_POS_ROW(Bit8u page) { return real_readb(BIOSMEM_SEG,BIOSMEM_CURSOR_POS+page*2+1); }