Browse Source

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.

Brad King 18 years ago
parent
commit
dc06ac5881
1 changed files with 13 additions and 0 deletions
  1. 13 0
      Source/kwsys/IOStream.cxx

+ 13 - 0
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