summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/IOStream.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-03 13:58:10 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-03 13:58:10 (GMT)
commitdc06ac58817672ca9931a4a4c177e18d679b6573 (patch)
tree66fa958cdcd50aa423c4aa40270488bc22b814d4 /Source/kwsys/IOStream.cxx
parent4d9fa41124f3f33bcea94ef54f1f9e077615498d (diff)
downloadCMake-dc06ac58817672ca9931a4a4c177e18d679b6573.zip
CMake-dc06ac58817672ca9931a4a4c177e18d679b6573.tar.gz
CMake-dc06ac58817672ca9931a4a4c177e18d679b6573.tar.bz2
COMP: Avoid warning in kwsys IOStream.cxx when the helper functions are not needed. Define one public symbol to avoid complaints from archivers about empty object files.
Diffstat (limited to 'Source/kwsys/IOStream.cxx')
-rw-r--r--Source/kwsys/IOStream.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/kwsys/IOStream.cxx b/Source/kwsys/IOStream.cxx
index 2e1a379..7aeb3d9 100644
--- a/Source/kwsys/IOStream.cxx
+++ b/Source/kwsys/IOStream.cxx
@@ -267,4 +267,17 @@ kwsys_ios::ostream& IOStreamPrint(kwsys_ios::ostream& os, IOStreamULL value)
} // namespace KWSYS_NAMESPACE
+#else
+
+namespace KWSYS_NAMESPACE
+{
+
+// Create one public symbol in this object file to avoid warnings from
+// archivers.
+void IOStreamSymbolToAvoidWarning()
+{
+}
+
+} // namespace KWSYS_NAMESPACE
+
#endif // KWSYS_IOS_NEED_OPERATORS_LL