From de57889786ea4bb7ab2be1c5a661d479b169b1a2 Mon Sep 17 00:00:00 2001 From: anonymous Date: Fri, 17 Sep 2010 21:59:53 +0000 Subject: Fixed minor compiler warnings. --- src/dwarf_eh.h | 2 +- src/exception.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dwarf_eh.h b/src/dwarf_eh.h index 02b9db9..8acc2a1 100644 --- a/src/dwarf_eh.h +++ b/src/dwarf_eh.h @@ -125,7 +125,7 @@ static int64_t read_sleb128(unsigned char** data) // Read as if it's signed uint64_t uleb = read_leb128(data, &bits); // If the most significant bit read is 1, then we need to sign extend it - if (uleb >> bits-1 == 1) + if ((uleb >> (bits-1)) == 1) { // Sign extend by setting all bits in front of it to 1 uleb |= ((int64_t)-1) << bits; diff --git a/src/exception.cc b/src/exception.cc index ada0c3a..356fd2d 100644 --- a/src/exception.cc +++ b/src/exception.cc @@ -844,6 +844,8 @@ extern "C" void __cxa_call_unexpected(void*exception) } } std::unexpected(); + // Should not be reached. + abort(); } namespace std -- cgit v1.2.3