| 1 | From <https://sources.debian.org/data/main/p/ploticus/2.42-8/debian/patches/fix-ftbfs-gcc14.patch>.
|
| 2 |
|
| 3 | Fixes a build error with GCC 14:
|
| 4 |
|
| 5 | svg.c: In function ‘PLGS_trailer’:
|
| 6 | svg.c:743:46: error: passing argument 1 of ‘gzprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
|
| 7 | 743 | if( svg_compress ) gzprintf( outfp, "%s", buf );
|
| 8 | | ^~~~~
|
| 9 | | |
|
| 10 | | FILE *
|
| 11 |
|
| 12 | |
| 13 | |
| 14 | @@ -740,7 +740,7 @@
|
| 15 | buf = svg_style; /* reuse */
|
| 16 | while( fgets( buf, 999, svg_fp ) != NULL ) {
|
| 17 | #ifdef WZ
|
| 18 | - if( svg_compress ) gzprintf( outfp, "%s", buf );
|
| 19 | + if( svg_compress ) gzprintf( (gzFile) outfp, "%s", buf );
|
| 20 | else
|
| 21 | #endif
|
| 22 | printf( "%s", buf );
|
| 23 | @@ -749,7 +749,7 @@
|
| 24 | unlink( svg_tmpfilename );
|
| 25 | #ifdef WZ
|
| 26 | if( svg_compress && !svg_stdout ) {
|
| 27 | - gzclose( outfp );
|
| 28 | + gzclose( (gzFile) outfp );
|
| 29 | chmod( svg_filename, 00644 );
|
| 30 | }
|
| 31 | #endif
|