mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 18:10: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@
11 lines
521 B
C
11 lines
521 B
C
--- gdb/alpha-tdep.c.orig 2018-03-15 16:45:58.726244000 +0100
|
|
+++ gdb/alpha-tdep.c 2018-03-15 16:46:30.051357000 +0100
|
|
@@ -769,7 +769,7 @@
|
|
static std::vector<CORE_ADDR>
|
|
alpha_deal_with_atomic_sequence (struct gdbarch *gdbarch, CORE_ADDR pc)
|
|
{
|
|
- CORE_ADDR breaks[2] = {-1, -1};
|
|
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
|
CORE_ADDR loc = pc;
|
|
CORE_ADDR closing_insn; /* Instruction that closes the atomic sequence. */
|
|
unsigned int insn = alpha_read_insn (gdbarch, loc);
|