mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 07:10:32 -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@
20 lines
875 B
C
20 lines
875 B
C
--- gdb/arch/arm-get-next-pcs.c.orig 2018-03-15 10:02:33.823447000 +0100
|
|
+++ gdb/arch/arm-get-next-pcs.c 2018-03-15 10:29:48.532027000 +0100
|
|
@@ -49,7 +49,7 @@
|
|
thumb_deal_with_atomic_sequence_raw (struct arm_get_next_pcs *self)
|
|
{
|
|
int byte_order_for_code = self->byte_order_for_code;
|
|
- CORE_ADDR breaks[2] = {-1, -1};
|
|
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
|
CORE_ADDR pc = regcache_read_pc (self->regcache);
|
|
CORE_ADDR loc = pc;
|
|
unsigned short insn1, insn2;
|
|
@@ -187,7 +187,7 @@
|
|
arm_deal_with_atomic_sequence_raw (struct arm_get_next_pcs *self)
|
|
{
|
|
int byte_order_for_code = self->byte_order_for_code;
|
|
- CORE_ADDR breaks[2] = {-1, -1};
|
|
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
|
CORE_ADDR pc = regcache_read_pc (self->regcache);
|
|
CORE_ADDR loc = pc;
|
|
unsigned int insn;
|