lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] gwc-no-xslfo ef516d8 3/4: Permit files dated 2017 to


From: Greg Chicares
Subject: [lmi-commits] [lmi] gwc-no-xslfo ef516d8 3/4: Permit files dated 2017 to be committed
Date: Mon, 22 Jan 2018 20:43:59 -0500 (EST)

branch: gwc-no-xslfo
commit ef516d89175f8ec2807b9a60df249ab048a1a175
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Permit files dated 2017 to be committed
    
    A pre-commit hook invokes this program, which, among other things,
    requires copyright dates to be current. For the time being, however, old
    dates are accepted so that files from a 2017 branch can be imported
    verbatim.
---
 test_coding_rules.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index cf4cb2e..91d8a08 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -484,7 +484,9 @@ void check_copyright(file const& f)
     std::time_t const t0 = std::time(nullptr);
     std::tm const*const t1 = std::localtime(&t0);
     LMI_ASSERT(nullptr != t1);
-    int const year = 1900 + t1->tm_year;
+// Temporarily accept 201*:
+//  int const year = 1900 + t1->tm_year;
+    int const year = 201;
 
     { // Scope to avoid unwanted '-Wshadow' diagnostic.
     std::ostringstream oss;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]