fix NDEBUG breakage with new dwarf5 code
These fields are only used when NDEBUG is not defined. We get build failures with the current code like: src/common/dwarf/dwarf2reader.h:181:12: error: private field 'string_buffer_length_' is not used [-Werror,-Wunused-private-field] uint64_t string_buffer_length_; Change-Id: I01d6e29d31d50e29ed3736e7197e70455724ae48 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2299022 Reviewed-by: Sterling Augustine <saugustine@google.com>
This commit is contained in:
parent
09b056975d
commit
721108fd54
1 changed files with 4 additions and 0 deletions
|
@ -178,9 +178,13 @@ class LineInfo {
|
||||||
// Convenience pointers into .debug_str and .debug_line_str. These exactly
|
// Convenience pointers into .debug_str and .debug_line_str. These exactly
|
||||||
// correspond to those in the compilation unit.
|
// correspond to those in the compilation unit.
|
||||||
const uint8_t* string_buffer_;
|
const uint8_t* string_buffer_;
|
||||||
|
#ifndef NDEBUG
|
||||||
uint64_t string_buffer_length_;
|
uint64_t string_buffer_length_;
|
||||||
|
#endif
|
||||||
const uint8_t* line_string_buffer_;
|
const uint8_t* line_string_buffer_;
|
||||||
|
#ifndef NDEBUG
|
||||||
uint64_t line_string_buffer_length_;
|
uint64_t line_string_buffer_length_;
|
||||||
|
#endif
|
||||||
|
|
||||||
const uint8_t* after_header_;
|
const uint8_t* after_header_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue