@@ -127,7 +127,7 @@ void cfg_error (char *msg,...)
longjmp (env, 1);
}
-inline int my_getc ()
+static inline int my_getc ()
{
if (currp == endp)
return EOF;
@@ -62,7 +62,7 @@ static unsigned outcnt = 0; /* bytes in output buffer */
static void flush_window (void);
static void error (char *);
#define gzip_mark mark
-inline void gzip_release (void **p)
+static inline void gzip_release (void **p)
{
release (*p);
}
@@ -158,7 +158,7 @@ void sun4c_unmapio (unsigned long virtual)
sun4c_map (virtual & ~4095, 0);
}
-inline unsigned long sun4m_get_lev1 (void)
+static inline unsigned long sun4m_get_lev1 (void)
{
unsigned long ret;
@@ -172,7 +172,7 @@ inline unsigned long sun4m_get_lev1 (void)
return ret;
}
-inline unsigned long sun4m_probe (unsigned long l)
+static inline unsigned long sun4m_probe (unsigned long l)
{
unsigned long ret;
@@ -181,7 +181,7 @@ inline unsigned long sun4m_probe (unsigned long l)
return ret;
}
-inline unsigned long sun4m_get_direct (unsigned long l)
+static inline unsigned long sun4m_get_direct (unsigned long l)
{
unsigned long ret;
__asm__ ("\n\t"
@@ -189,7 +189,7 @@ inline unsigned long sun4m_get_direct (unsigned long l)
return ret;
}
-inline void sun4m_set_direct (unsigned long l, unsigned long set)
+static inline void sun4m_set_direct (unsigned long l, unsigned long set)
{
__asm__ ("\n\t"
"sta %0, [%1] 32\n\t" : : "r" (set), "r" (l));
@@ -73,7 +73,7 @@ static unsigned outcnt = 0; /* bytes in output buffer */
static void flush_window (void);
static void error (char *);
#define gzip_mark mark
-inline void gzip_release (void **p)
+static inline void gzip_release (void **p)
{
release (*p);
}
Make all inline functions static. This will avoid build errors with GCC 7.2. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> --- second/cfg.c | 2 +- second/decomp.c | 2 +- second/memory.c | 8 ++++---- tilo/tilo.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-)