git: 57031cc334c9 - main - misc/lastools: fix build on ARM / POWER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Jan 2025 11:27:46 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=57031cc334c9c6c374024d066ec9029fc49758ac commit 57031cc334c9c6c374024d066ec9029fc49758ac Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-19 15:12:33 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-22 11:25:20 +0000 misc/lastools: fix build on ARM / POWER /wrkdirs/usr/ports/misc/lastools/work/LAStools-2.0.3/src/las2txt.cpp:573:37: error: constant expression evaluates to -3 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 573 | const char replacement_codes[] = {HSV255, HSL255, HSV, HSL}; | ^~~~~~ --- misc/lastools/files/patch-src_las2txt.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/misc/lastools/files/patch-src_las2txt.cpp b/misc/lastools/files/patch-src_las2txt.cpp new file mode 100644 index 000000000000..e72050fae2ce --- /dev/null +++ b/misc/lastools/files/patch-src_las2txt.cpp @@ -0,0 +1,11 @@ +--- src/las2txt.cpp.orig 2025-01-19 14:35:25 UTC ++++ src/las2txt.cpp +@@ -570,7 +570,7 @@ static void parse_extended_flags(char *parse_string) + static void parse_extended_flags(char *parse_string) + { + const char *extended_flags[] = {"(HSV)", "(HSL)", "(hsv)", "(hsl)"}; +- const char replacement_codes[] = {HSV255, HSL255, HSV, HSL}; ++ const signed char replacement_codes[] = {HSV255, HSL255, HSV, HSL}; + I32 nflags = (I32)(sizeof(extended_flags) / sizeof(char*)); + + for (I32 i = 0; i < nflags; i++)