|
convert to uint8_t* for binary data to fix -Wnarrowing build errors
Newer gcc versions default to -Werror=narrowing when using newer C++
standards (which we do). This causes issues when we try to stuff a
value like 0xea into a char -- the value is out of range for signed
char bytes. That's when gcc throws an error:
.../bytereader_unittest.cc: In member function 'virtual void Reader_DW_EH_PE_absptr4_Test::TestBody()':
.../bytereader_unittest.cc:400:55: error: narrowing conversion of '234' from 'int' to 'char' inside { } [-Wnarrowing]
BUG= chromium:579384
TEST=`make check` passes
R=mark@chromium.org
Committed: https://chromium.googlesource.com/breakpad/breakpad/+/258591ed4cb502925f1ffda8c8af57559c0c1c26
Total comments: 4
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+219 lines, -173 lines) |
Patch |
|
M |
src/common/dwarf/bytereader.h
|
View
|
1
2
3
4
5
|
9 chunks |
+17 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/bytereader.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/bytereader-inl.h
|
View
|
1
2
3
4
5
|
6 chunks |
+12 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/bytereader_unittest.cc
|
View
|
1
2
3
4
5
|
20 chunks |
+30 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2diehandler.h
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2diehandler.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2diehandler_unittest.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2reader.h
|
View
|
1
2
3
4
5
|
14 chunks |
+27 lines, -27 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2reader.cc
|
View
|
1
5
|
26 chunks |
+44 lines, -42 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2reader_cfi_unittest.cc
|
View
|
1
2
3
4
5
|
16 chunks |
+32 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf/dwarf2reader_die_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf_cu_to_module.h
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf_cu_to_module.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/common/dwarf_cu_to_module_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/common/linux/dump_symbols.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/common/mac/dump_syms.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
Total messages: 21 (4 generated)
|