summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-06-09 12:18:46 (GMT)
committerBrad King <brad.king@kitware.com>2005-06-09 12:18:46 (GMT)
commit65ef62c697e3dd7d76a095054a0d3b175ba65269 (patch)
tree5b7da7d51ca275fa59634b7513062e7a8d14ea94
parent05bd27010979e1c6fa78a4f76e96daa4fa8a8aa4 (diff)
downloadCMake-65ef62c697e3dd7d76a095054a0d3b175ba65269.zip
CMake-65ef62c697e3dd7d76a095054a0d3b175ba65269.tar.gz
CMake-65ef62c697e3dd7d76a095054a0d3b175ba65269.tar.bz2
COMP: Fix no-assignment-operator warning and disable typedef-name synonym warning.
-rw-r--r--Source/kwsys/kwsys_ios_sstream.h.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/kwsys/kwsys_ios_sstream.h.in b/Source/kwsys/kwsys_ios_sstream.h.in
index f1eb8be..9b4ec6b 100644
--- a/Source/kwsys/kwsys_ios_sstream.h.in
+++ b/Source/kwsys/kwsys_ios_sstream.h.in
@@ -76,6 +76,8 @@ public:
static void IgnoreUnusedVariable(const ostringstream_cleanup&) {}
protected:
ostrstream& m_OStrStream;
+private:
+ void operator=(ostringstream_cleanup const&);
};
class ostringstream: public ostrstream
@@ -102,6 +104,11 @@ private:
void operator=(const ostringstream&);
};
+#if defined(_MSC_VER)
+# pragma warning (push)
+# pragma warning (disable: 4097) /* typedef-name used as synonym for class */
+#endif
+
class istringstream: private kwsys_stl::string, public istrstream
{
public:
@@ -122,6 +129,10 @@ private:
void operator=(const istringstream&);
};
+#if defined(_MSC_VER)
+# pragma warning (pop)
+#endif
+
} // namespace @KWSYS_NAMESPACE@_ios
#endif