mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
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@
11 lines
447 B
C
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 (':');
|