Control: tag -1 patch

Hi,

just making the inline functions static inline gets rid of the warnings

    'A' is static but used in inline function 'B' which is not static

and fixes the build. Patch attached.

Cheers,
-Hilko
>From 7251d5b20ea2c0e8245556d4eb3b3327c26fcfd7 Mon Sep 17 00:00:00 2001
From: Hilko Bengen <ben...@hilluzination.de>
Date: Sat, 19 Aug 2017 17:03:16 +0200
Subject: [PATCH] make some functions static

---
 g3/g3cat.c  | 3 +++
 g3/pbm2g3.c | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/g3/g3cat.c b/g3/g3cat.c
index 8a4b708..4205d33 100644
--- a/g3/g3cat.c
+++ b/g3/g3cat.c
@@ -67,6 +67,7 @@ void putcode _P2( (code, len), int code, int len )
 }
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void putwhitespan _P1( (l), int l )
@@ -98,6 +99,7 @@ void putwhitespan _P1( (l), int l )
 }
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void putblackspan _P1( (l), int l )
@@ -129,6 +131,7 @@ void putblackspan _P1( (l), int l )
 }
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void puteol _P0( void )			/* write byte-aligned EOL */
diff --git a/g3/pbm2g3.c b/g3/pbm2g3.c
index 283a728..1641782 100644
--- a/g3/pbm2g3.c
+++ b/g3/pbm2g3.c
@@ -40,6 +40,7 @@ static unsigned int out_hibit = 0;
 static int out_byte_tab[ 256 ];			/* for g3 byte reversal */
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void putcode _P2( (code, len), int code, int len )
@@ -60,6 +61,7 @@ void putcode _P2( (code, len), int code, int len )
 }
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void puteol _P0( void )			/* write byte-aligned EOL */
@@ -69,6 +71,7 @@ void puteol _P0( void )			/* write byte-aligned EOL */
 }
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void putwhitespan _P1( (l), int l )
@@ -99,9 +102,6 @@ void putwhitespan _P1( (l), int l )
     putcode( t_white[l].bit_code, t_white[l].bit_length );
 }
 
-#ifdef __GNUC__
-inline
-#endif
 void putblackspan _P1( (l), int l )
 {
     if ( l >= 64 )
-- 
2.14.1

Reply via email to