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:
Mike Frysinger 2020-07-15 02:20:48 -04:00
parent 09b056975d
commit 721108fd54

View file

@ -178,9 +178,13 @@ class LineInfo {
// Convenience pointers into .debug_str and .debug_line_str. These exactly
// correspond to those in the compilation unit.
const uint8_t* string_buffer_;
#ifndef NDEBUG
uint64_t string_buffer_length_;
#endif
const uint8_t* line_string_buffer_;
#ifndef NDEBUG
uint64_t line_string_buffer_length_;
#endif
const uint8_t* after_header_;
};