mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -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@
15 lines
586 B
C
15 lines
586 B
C
--- gdb/tilegx-linux-tdep.c.orig 2018-03-15 16:31:44.623131000 +0100
|
|
+++ gdb/tilegx-linux-tdep.c 2018-03-15 16:32:29.603585000 +0100
|
|
@@ -65,9 +65,9 @@
|
|
SIGTRAMP_FRAME,
|
|
8,
|
|
{
|
|
- { 0x00045fe551483000ULL, -1 }, /* { moveli r10, 139 } */
|
|
- { 0x286b180051485000ULL, -1 }, /* { swint1 } */
|
|
- { TRAMP_SENTINEL_INSN, -1 }
|
|
+ { 0x00045fe551483000ULL, static_cast<ULONGEST>(-1) }, /* { moveli r10, 139 } */
|
|
+ { 0x286b180051485000ULL, static_cast<ULONGEST>(-1) }, /* { swint1 } */
|
|
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
|
},
|
|
tilegx_linux_sigframe_init
|
|
};
|