X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fstream-class.hpp;h=08555f3071e55362f1ce4f20fae3d4ca7ab59a12;hb=139a8d250fb18f8ffc95b0936f7285f7b484b72f;hp=636d0b136690ed82dd9ef2edf987be90fb66bbd7;hpb=0220be14254fac4f7af642fd6630282b29776a70;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/stream-class.hpp b/src/bin/lttng-sessiond/stream-class.hpp index 636d0b136..08555f307 100644 --- a/src/bin/lttng-sessiond/stream-class.hpp +++ b/src/bin/lttng-sessiond/stream-class.hpp @@ -32,7 +32,12 @@ public: virtual const lttng::sessiond::trace::type& get_context() const; const unsigned int id; - const header_type header_type; + /* + * header_type 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 header_type header_type_; protected: stream_class(unsigned int id, enum header_type header_type);