This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH 1/2] libdw: ensure read_encoded_value's value is set
- From: Petr Machata <pmachata at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 12 Feb 2015 00:22:15 +0100
- Subject: Re: [PATCH 1/2] libdw: ensure read_encoded_value's value is set
Josh Stone <email@example.com> writes:
> With CFLAGS='-Og -g', F21 gcc hits -Werror=maybe-uninitialized in
> read_encoded_value at "*result += value". It's fine with -O2/-O0.
> By my inspection, the only way those don't set value are for error
> cases, which will then return immediately.
Looks good to me. I don't see how we could end up using value
uninitialized either, but oh well.