Merge pull request #101 from haberman/dwarf-form
Fixed a couple of compile warnings/errors.
diff --git a/src/bloaty.cc b/src/bloaty.cc
index ca39a07..dd55811 100644
--- a/src/bloaty.cc
+++ b/src/bloaty.cc
@@ -60,6 +60,7 @@
exit(1); \
}
+ABSL_ATTRIBUTE_NORETURN
static void Throw(const char *str, int line) {
throw bloaty::Error(str, __FILE__, line);
}
diff --git a/src/dwarf.cc b/src/dwarf.cc
index 69843ba..3b7a4a3 100644
--- a/src/dwarf.cc
+++ b/src/dwarf.cc
@@ -1683,7 +1683,7 @@
uint32_t return_address_reg = 0;
};
- std::unordered_map<const char*, CIEInfo> cie_map;
+ std::unordered_map<const void*, CIEInfo> cie_map;
while (remaining.size() > 0) {
dwarf::CompilationUnitSizes sizes;