From dc06ac58817672ca9931a4a4c177e18d679b6573 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 3 Feb 2008 08:58:10 -0500 Subject: [PATCH] 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. --- Source/kwsys/IOStream.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/kwsys/IOStream.cxx b/Source/kwsys/IOStream.cxx index 2e1a3790d..7aeb3d949 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