[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2e49ee0 3/4: Avoid clang "private field ... i
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2e49ee0 3/4: Avoid clang "private field ... is not used" warning |
Date: |
Sun, 11 Nov 2018 10:18:08 -0500 (EST) |
branch: master
commit 2e49ee02933798ab7578acdcd60211a2efc7033f
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Avoid clang "private field ... is not used" warning
Recommitted the change originally made in 603fea8c3, but later removed
in 8c51f223a, with a comment explaining why it should not be removed
again. See:
https://lists.nongnu.org/archive/html/lmi/2018-11/msg00006.html
---
input_sequence_parser.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/input_sequence_parser.cpp b/input_sequence_parser.cpp
index 174fb9c..86a9904 100644
--- a/input_sequence_parser.cpp
+++ b/input_sequence_parser.cpp
@@ -50,6 +50,9 @@ SequenceParser::SequenceParser
,allowed_keywords_ {a_allowed_keywords}
,keywords_only_ {a_keywords_only}
{
+ // Suppress clang '-Wunused-private-field' warnings:
+ stifle_warning_for_unused_value(inforce_duration_);
+ stifle_warning_for_unused_value(effective_year_);
sequence();
diagnostic_messages_ = diagnostics_.str();
}