ports/devel/gdb/files/patch-gdb_linespec.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
447 B
C

--- gdb/linespec.c.orig 2018-03-15 16:52:46.342610000 +0100
+++ gdb/linespec.c 2018-03-15 16:53:18.324077000 +0100
@@ -2912,7 +2912,7 @@
new "quote" char. */
if (tracker.quote_char ())
{
- char quote_char_str[2] = { tracker.quote_char () };
+ char quote_char_str[2] = { static_cast<char>(tracker.quote_char () )};
fn = reconcat (fn, fn, quote_char_str, (char *) NULL);
tracker.set_quote_char (':');