summaryrefslogtreecommitdiffstats
path: root/patches/mgetty-1.1.36/0003-fix-building-with-gcc-7.x.patch
blob: 7783883b6f2d08c7ad9565752d9828bbd288d016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
From: Hilko Bengen <bengen@debian.org>
Date: Wed, 7 Feb 2018 10:59:18 +0100
Subject: [PATCH] fix building with gcc 7.x

make some functions static

Patch imported from Debian.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 g3/g3cat.c  | 3 +++
 g3/pbm2g3.c | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/g3/g3cat.c b/g3/g3cat.c
index 8a4b708afa7e..4205d332cde7 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 283a72867312..7dc81a808bfc 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 )
@@ -100,6 +103,7 @@ void putwhitespan _P1( (l), int l )
 }
 
 #ifdef __GNUC__
+static
 inline
 #endif
 void putblackspan _P1( (l), int l )