Skip to content
Commit 081d03b6 authored by Andrew Geissler's avatar Andrew Geissler
Browse files

ensure variable initialized and error path reported



New upstream yocto brings in an option that ensure all variables are
initialized. Without this change, we get this failure:

| ../git/libpldmresponder/bios_integer_attribute.cpp:158:12: error:
|   'value' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|   158 |     return value;
|       |            ^~~~~
| cc1plus: all warnings being treated as errors

There's no good way to report a property type is not found so add code
to raise an exception in this situation.

Signed-off-by: default avatarAndrew Geissler <geissonator@yahoo.com>
Change-Id: Ie218f72b6d58fa4ad1e99f1a83eb17f3f87cd941
parent 5dad5f4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment