Default initialize enum flags to 0
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 21 Feb 2017 16:48:49 +0000 (11:48 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 21 Feb 2017 16:48:49 +0000 (11:48 -0500)
commit1b90b1390679473dd84416e462afa1587769ceec
tree9982f3cbcb9a359802dc572df811590e2db9fd55
parent2039d74e780db6659c87cd3c426d526615cfe703
Default initialize enum flags to 0

... so that we don't need to do it manually, and potentially forget.
For example, this allows to do:

  my_flags flags;

  ...

  flags |= some_flag;

gdb/ChangeLog:

* common/enum-flags.h (enum_flags::enum_flags): Initialize
m_enum_value to 0 in default constructor.
gdb/ChangeLog
gdb/common/enum-flags.h