projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix: old gcc does not recognize hidden/shadowed enumeration as valid
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
field.hpp
diff --git
a/src/bin/lttng-sessiond/field.hpp
b/src/bin/lttng-sessiond/field.hpp
index 23c67b04ce1ebe705172523624af6b3ff34dcf2d..f66fdbe7f440dc3c51a237c58fa75977002d84c6 100644
(file)
--- a/
src/bin/lttng-sessiond/field.hpp
+++ b/
src/bin/lttng-sessiond/field.hpp
@@
-86,8
+86,13
@@
public:
const enum byte_order byte_order;
const unsigned int size;
const enum byte_order byte_order;
const unsigned int size;
- const signedness signedness;
- const base base;
+ /*
+ * signedness and base are suffixed with '_' to work-around a bug in older
+ * GCCs (before 6) that do not recognize hidden/shadowed enumeration as valid
+ * nested-name-specifiers.
+ */
+ const signedness signedness_;
+ const base base_;
protected:
virtual bool _is_equal(const type& other) const noexcept override;
protected:
virtual bool _is_equal(const type& other) const noexcept override;
@@
-264,7
+269,12
@@
public:
string_type(unsigned int alignment, enum encoding encoding);
string_type(unsigned int alignment, enum encoding encoding);
- const encoding encoding;
+ /*
+ * encoding is suffixed with '_' to work-around a bug in older
+ * GCCs (before 6) that do not recognize hidden/shadowed enumeration as valid
+ * nested-name-specifiers.
+ */
+ const encoding encoding_;
protected:
virtual bool _is_equal(const type& base_other) const noexcept override;
protected:
virtual bool _is_equal(const type& base_other) const noexcept override;
This page took
0.023604 seconds
and
4
git commands to generate.