summaryrefslogtreecommitdiffstats
path: root/tests/backtrace.c
diff options
context:
space:
mode:
authorJosh Stone <[email protected]>2015-02-11 13:53:14 -0800
committerJosh Stone <[email protected]>2015-02-11 15:50:44 -0800
commit031db7ce5f149c8469ac33f688a09ffb15c5d85d (patch)
tree2d1d32b5c0f395bb8015d5a53c03fef41ef1683a /tests/backtrace.c
parentb4da85ded5de790aa2cddd6d725970945c97df89 (diff)
libdw: ensure read_encoded_value's value is set
With CFLAGS='-Og -g', F21 gcc hits -Werror=maybe-uninitialized in read_encoded_value at "*result += value". It's fine with -O2/-O0. In particular it seems to care about the __libdw_cfi_read_address_inc calls. By my inspection, the only way those don't set value are for error cases, which will then return immediately. This patch just sets value = 0 to begin with, so gcc is always convinced it's fine. Signed-off-by: Josh Stone <[email protected]>
Diffstat (limited to 'tests/backtrace.c')
0 files changed, 0 insertions, 0 deletions