[tex-k] One quick fix
Doug McKenna
doug at mathemaesthetics.com
Sat Oct 26 23:35:43 CEST 2019
Here's a quick simple fix that doesn't involve a cast:
In the kpathsea library file "progname.c", in the routine ReadSymLink() (at file line 88 or thereabouts), is the line
register int n = readlink (fn, sym, BSIZE);
On my system (Darwin), the header prototype for readlink() says it returns a ssize_t (basically a signed 64-bit number), so of course there's a compiler warning, because ints are still 32-bit. But the assignment is only to a local variable, so changing the line to
register ssize_t n = readlink (fn, sym, BSIZE);
fixes that warning (plus you can likely get rid of the register modifier without harm). The rest of the code (4 lines or so) doesn't care about n's size.
- Doug McK.
More information about the tex-k
mailing list