From b1f66ef4911320ee86fe7b871674530a53d4543d Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Thu, 10 Jul 2008 17:20:14 -0400
Subject: [PATCH] COMP: remove warning and check for assignment to itself in
 operator=

---
 RegularExpression.cxx | 4 ++++
 kwsysDateStamp.cmake  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/RegularExpression.cxx b/RegularExpression.cxx
index cdadb95..84cf857 100644
--- a/RegularExpression.cxx
+++ b/RegularExpression.cxx
@@ -77,6 +77,10 @@ RegularExpression::RegularExpression (const RegularExpression& rxp) {
 // operator= -- Copies the given regular expression.
 RegularExpression& RegularExpression::operator= (const RegularExpression& rxp)
 {
+  if(this == &rxp)
+    {
+    return *this;
+    }
   if ( !rxp.program )
     {
     this->program = 0;
diff --git a/kwsysDateStamp.cmake b/kwsysDateStamp.cmake
index 8b7b2d0..6513cfd 100644
--- a/kwsysDateStamp.cmake
+++ b/kwsysDateStamp.cmake
@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR  2008)
 SET(KWSYS_DATE_STAMP_MONTH 07)
 
 # KWSys version date day component.  Format is DD.
-SET(KWSYS_DATE_STAMP_DAY   09)
+SET(KWSYS_DATE_STAMP_DAY   10)
-- 
GitLab