golang: Update from 1.10.1 to 1.10.2
[termux-packages] / packages / leptonica / silence-tmpfile-warnings.patch
1 diff -u -r ../leptonica-1.74.1/src/boxbasic.c ./src/boxbasic.c
2 --- ../leptonica-1.74.1/src/boxbasic.c 2016-12-02 20:42:49.000000000 +0100
3 +++ ./src/boxbasic.c 2017-01-29 22:11:16.276072146 +0100
4 @@ -2066,7 +2066,6 @@
5 return ERROR_INT("stream not opened", procName, 1);
6 ret = boxaaWriteStream(fp, baa);
7 #else
8 - L_INFO("work-around: writing to a temp file\n", procName);
9 #ifdef _WIN32
10 if ((fp = fopenWriteWinTempfile()) == NULL)
11 return ERROR_INT("tmpfile stream not opened", procName, 1);
12 @@ -2287,7 +2286,6 @@
13 return ERROR_INT("stream not opened", procName, 1);
14 ret = boxaWriteStream(fp, boxa);
15 #else
16 - L_INFO("work-around: writing to a temp file\n", procName);
17 #ifdef _WIN32
18 if ((fp = fopenWriteWinTempfile()) == NULL)
19 return ERROR_INT("tmpfile stream not opened", procName, 1);
20 diff -u -r ../leptonica-1.74.1/src/colormap.c ./src/colormap.c
21 --- ../leptonica-1.74.1/src/colormap.c 2016-12-02 20:42:53.000000000 +0100
22 +++ ./src/colormap.c 2017-01-29 22:11:16.316071650 +0100
23 @@ -1715,7 +1715,6 @@
24 return ERROR_INT("stream not opened", procName, 1);
25 ret = pixcmapWriteStream(fp, cmap);
26 #else
27 - L_INFO("work-around: writing to a temp file\n", procName);
28 #ifdef _WIN32
29 if ((fp = fopenWriteWinTempfile()) == NULL)
30 return ERROR_INT("tmpfile stream not opened", procName, 1);
31 diff -u -r ../leptonica-1.74.1/src/dewarp1.c ./src/dewarp1.c
32 --- ../leptonica-1.74.1/src/dewarp1.c 2016-12-02 20:42:57.000000000 +0100
33 +++ ./src/dewarp1.c 2017-01-29 22:11:16.352071204 +0100
34 @@ -1401,7 +1401,6 @@
35 return ERROR_INT("stream not opened", procName, 1);
36 ret = dewarpWriteStream(fp, dew);
37 #else
38 - L_INFO("work-around: writing to a temp file\n", procName);
39 #ifdef _WIN32
40 if ((fp = fopenWriteWinTempfile()) == NULL)
41 return ERROR_INT("tmpfile stream not opened", procName, 1);
42 @@ -1673,7 +1672,6 @@
43 return ERROR_INT("stream not opened", procName, 1);
44 ret = dewarpaWriteStream(fp, dewa);
45 #else
46 - L_INFO("work-around: writing to a temp file\n", procName);
47 #ifdef _WIN32
48 if ((fp = fopenWriteWinTempfile()) == NULL)
49 return ERROR_INT("tmpfile stream not opened", procName, 1);
50 diff -u -r ../leptonica-1.74.1/src/fpix1.c ./src/fpix1.c
51 --- ../leptonica-1.74.1/src/fpix1.c 2016-12-02 20:43:01.000000000 +0100
52 +++ ./src/fpix1.c 2017-01-29 22:11:16.400070608 +0100
53 @@ -1904,7 +1904,6 @@
54 return ERROR_INT("stream not opened", procName, 1);
55 ret = fpixWriteStream(fp, fpix);
56 #else
57 - L_INFO("work-around: writing to a temp file\n", procName);
58 #ifdef _WIN32
59 if ((fp = fopenWriteWinTempfile()) == NULL)
60 return ERROR_INT("tmpfile stream not opened", procName, 1);
61 @@ -2203,7 +2202,6 @@
62 return ERROR_INT("stream not opened", procName, 1);
63 ret = dpixWriteStream(fp, dpix);
64 #else
65 - L_INFO("work-around: writing to a temp file\n", procName);
66 #ifdef _WIN32
67 if ((fp = fopenWriteWinTempfile()) == NULL)
68 return ERROR_INT("tmpfile stream not opened", procName, 1);
69 diff -u -r ../leptonica-1.74.1/src/jp2kio.c ./src/jp2kio.c
70 --- ../leptonica-1.74.1/src/jp2kio.c 2016-12-02 20:43:11.000000000 +0100
71 +++ ./src/jp2kio.c 2017-01-29 22:11:16.424070311 +0100
72 @@ -847,7 +847,6 @@
73 return ERROR_INT("stream not opened", procName, 1);
74 ret = pixWriteStreamJp2k(fp, pix, quality, nlevels, hint, debug);
75 #else
76 - L_INFO("work-around: writing to a temp file\n", procName);
77 #ifdef _WIN32
78 if ((fp = fopenWriteWinTempfile()) == NULL)
79 return ERROR_INT("tmpfile stream not opened", procName, 1);
80 diff -u -r ../leptonica-1.74.1/src/jpegio.c ./src/jpegio.c
81 --- ../leptonica-1.74.1/src/jpegio.c 2016-12-02 20:43:18.000000000 +0100
82 +++ ./src/jpegio.c 2017-01-29 22:11:16.428070261 +0100
83 @@ -1091,7 +1091,6 @@
84 return ERROR_INT("stream not opened", procName, 1);
85 ret = pixWriteStreamJpeg(fp, pix, quality, progressive);
86 #else
87 - L_INFO("work-around: writing to a temp file\n", procName);
88 #ifdef _WIN32
89 if ((fp = fopenWriteWinTempfile()) == NULL)
90 return ERROR_INT("tmpfile stream not opened", procName, 1);
91 diff -u -r ../leptonica-1.74.1/src/numabasic.c ./src/numabasic.c
92 --- ../leptonica-1.74.1/src/numabasic.c 2016-12-02 20:43:25.000000000 +0100
93 +++ ./src/numabasic.c 2017-01-29 22:11:16.444070062 +0100
94 @@ -1276,7 +1276,6 @@
95 return ERROR_INT("stream not opened", procName, 1);
96 ret = numaWriteStream(fp, na);
97 #else
98 - L_INFO("work-around: writing to a temp file\n", procName);
99 #ifdef _WIN32
100 if ((fp = fopenWriteWinTempfile()) == NULL)
101 return ERROR_INT("tmpfile stream not opened", procName, 1);
102 @@ -1962,7 +1961,6 @@
103 return ERROR_INT("stream not opened", procName, 1);
104 ret = numaaWriteStream(fp, naa);
105 #else
106 - L_INFO("work-around: writing to a temp file\n", procName);
107 #ifdef _WIN32
108 if ((fp = fopenWriteWinTempfile()) == NULL)
109 return ERROR_INT("tmpfile stream not opened", procName, 1);
110 diff -u -r ../leptonica-1.74.1/src/pixabasic.c ./src/pixabasic.c
111 --- ../leptonica-1.74.1/src/pixabasic.c 2016-12-02 20:43:29.000000000 +0100
112 +++ ./src/pixabasic.c 2017-01-29 22:11:16.488069517 +0100
113 @@ -2626,7 +2626,6 @@
114 return ERROR_INT("stream not opened", procName, 1);
115 ret = pixaWriteStream(fp, pixa);
116 #else
117 - L_INFO("work-around: writing to a temp file\n", procName);
118 #ifdef _WIN32
119 if ((fp = fopenWriteWinTempfile()) == NULL)
120 return ERROR_INT("tmpfile stream not opened", procName, 1);
121 @@ -2998,7 +2997,6 @@
122 return ERROR_INT("stream not opened", procName, 1);
123 ret = pixaaWriteStream(fp, paa);
124 #else
125 - L_INFO("work-around: writing to a temp file\n", procName);
126 #ifdef _WIN32
127 if ((fp = fopenWriteWinTempfile()) == NULL)
128 return ERROR_INT("tmpfile stream not opened", procName, 1);
129 diff -u -r ../leptonica-1.74.1/src/pixcomp.c ./src/pixcomp.c
130 --- ../leptonica-1.74.1/src/pixcomp.c 2016-12-02 20:43:33.000000000 +0100
131 +++ ./src/pixcomp.c 2017-01-29 22:11:16.500069368 +0100
132 @@ -1841,7 +1841,6 @@
133 return ERROR_INT("stream not opened", procName, 1);
134 ret = pixacompWriteStream(fp, pixac);
135 #else
136 - L_INFO("work-around: writing to a temp file\n", procName);
137 #ifdef _WIN32
138 if ((fp = fopenWriteWinTempfile()) == NULL)
139 return ERROR_INT("tmpfile stream not opened", procName, 1);
140 diff -u -r ../leptonica-1.74.1/src/pnmio.c ./src/pnmio.c
141 --- ../leptonica-1.74.1/src/pnmio.c 2016-12-27 19:30:34.000000000 +0100
142 +++ ./src/pnmio.c 2017-01-29 22:11:16.512069219 +0100
143 @@ -1179,7 +1179,6 @@
144 return ERROR_INT("stream not opened", procName, 1);
145 ret = pixWriteStreamPnm(fp, pix);
146 #else
147 - L_INFO("work-around: writing to a temp file\n", procName);
148 #ifdef _WIN32
149 if ((fp = fopenWriteWinTempfile()) == NULL)
150 return ERROR_INT("tmpfile stream not opened", procName, 1);
151 @@ -1234,7 +1233,6 @@
152 return ERROR_INT("stream not opened", procName, 1);
153 ret = pixWriteStreamPam(fp, pix);
154 #else
155 - L_INFO("work-around: writing to a temp file\n", procName);
156 #ifdef _WIN32
157 if ((fp = fopenWriteWinTempfile()) == NULL)
158 return ERROR_INT("tmpfile stream not opened", procName, 1);
159 diff -u -r ../leptonica-1.74.1/src/ptabasic.c ./src/ptabasic.c
160 --- ../leptonica-1.74.1/src/ptabasic.c 2016-12-02 20:43:49.000000000 +0100
161 +++ ./src/ptabasic.c 2017-01-29 22:11:16.520069120 +0100
162 @@ -871,7 +871,6 @@
163 return ERROR_INT("stream not opened", procName, 1);
164 ret = ptaWriteStream(fp, pta, type);
165 #else
166 - L_INFO("work-around: writing to a temp file\n", procName);
167 #ifdef _WIN32
168 if ((fp = fopenWriteWinTempfile()) == NULL)
169 return ERROR_INT("tmpfile stream not opened", procName, 1);
170 @@ -1463,7 +1462,6 @@
171 return ERROR_INT("stream not opened", procName, 1);
172 ret = ptaaWriteStream(fp, ptaa, type);
173 #else
174 - L_INFO("work-around: writing to a temp file\n", procName);
175 #ifdef _WIN32
176 if ((fp = fopenWriteWinTempfile()) == NULL)
177 return ERROR_INT("tmpfile stream not opened", procName, 1);
178 diff -u -r ../leptonica-1.74.1/src/sarray1.c ./src/sarray1.c
179 --- ../leptonica-1.74.1/src/sarray1.c 2016-12-21 21:11:34.000000000 +0100
180 +++ ./src/sarray1.c 2017-01-29 22:11:16.552068723 +0100
181 @@ -1567,7 +1567,6 @@
182 return ERROR_INT("stream not opened", procName, 1);
183 ret = sarrayWriteStream(fp, sa);
184 #else
185 - L_INFO("work-around: writing to a temp file\n", procName);
186 #ifdef _WIN32
187 if ((fp = fopenWriteWinTempfile()) == NULL)
188 return ERROR_INT("tmpfile stream not opened", procName, 1);
189 diff -u -r ../leptonica-1.74.1/src/utils2.c ./src/utils2.c
190 --- ../leptonica-1.74.1/src/utils2.c 2016-12-21 21:11:53.000000000 +0100
191 +++ ./src/utils2.c 2017-01-29 22:11:16.584068326 +0100
192 @@ -1635,7 +1635,6 @@
193 if ((fp = fmemopen((void *)data, size, "rb")) == NULL)
194 return (FILE *)ERROR_PTR("stream not opened", procName, NULL);
195 #else /* write to tmp file */
196 - L_INFO("work-around: writing to a temp file\n", procName);
197 #ifdef _WIN32
198 if ((fp = fopenWriteWinTempfile()) == NULL)
199 return (FILE *)ERROR_PTR("tmpfile stream not opened", procName, NULL);