pkgsrc/sysutils/lnav
he 082d57fb96 lnav: fix build on NetBSD/macppc and reduce amount of warnings.
- The program uses alloca() but insists on use of -std=c++14.
   alloca(), however, especially on NetBSD/macppc, needs the
   -std=gnu++14 feature set, so force use of that standard.
 - isdigit() argument nees to be `unsigned char` or EOF. Add cast.
 - On NetBSD, `time_t` isn't a `long`, and there is apparently
   no portable way to supply a printf format for a `time_t`.
   Cast to `long long` and print with %lld.
 - A `role_t` is not the same as `int`, causing -Wformat warning.
   Cast to `int` before printing.
 - Avoid trying to right-shift with 32 on a 32-bit platform.
 - Print `unsigned int` with %u, and not with %ld.

Lots of signedness warnings remain, reported to upstream in
https://github.com/tstack/lnav/issues/1157.  I'll be requesting
pull requests for some of the others above.

Bump PKGREVISION.
2023-05-24 22:42:53 +00:00
..
patches lnav: fix build on NetBSD/macppc and reduce amount of warnings. 2023-05-24 22:42:53 +00:00
DESCR
distinfo lnav: fix build on NetBSD/macppc and reduce amount of warnings. 2023-05-24 22:42:53 +00:00
Makefile lnav: fix build on NetBSD/macppc and reduce amount of warnings. 2023-05-24 22:42:53 +00:00
PLIST