ports/devel/gdb/files/patch-gdb_completer.c
Luca Pizzamiglio b8942914f5 devel/gdb: fix build on current
Clang 6 doesn't allow negative numbers to be implicitely converted to
unsigned types.
This patch explicits all casts.
While I'm here, add an option to silent tons of warning messages

PR:		226644
Reported by:	rakuco@
2018-03-16 14:29:38 +00:00

11 lines
477 B
C

--- gdb/completer.c.orig 2018-03-15 16:51:01.106677000 +0100
+++ gdb/completer.c 2018-03-15 16:51:47.055214000 +0100
@@ -2038,7 +2038,7 @@
/* We don't rely on readline appending the quote char as
delimiter as then readline wouldn't append the ' ' after the
completion. */
- char buf[2] = { quote_char () };
+ char buf[2] = { static_cast<char> (quote_char ()) };
match_list[0] = reconcat (match_list[0], match_list[0],
buf, (char *) NULL);