summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-02-27 08:49:16 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-02-27 08:49:16 -0800
commitb127cfb18e214b5188924a41f2f8d8ae38bf473f (patch)
tree6083c19a765374c195cfc2b69bc3d4d54f34c000 /src/pugixml.cpp
parent2ec3579f296fdea783a806179424b28b2f3c0100 (diff)
Fix Texas Instruments compiler warning
Texas Instruments compiler produces this warning for unused template member functions: "pugixml.cpp", line 253: warning #179-D: function "pugi::impl::<unnamed>::auto_deleter<T>::release [with T=pugi::impl::<unnamed>::xml_stream_chunk<char>]" was declared but never referenced As far as I can tell, this is a compiler issue - these functions should not be instantiated in the first place; while it's possible to rework the code to work around this, the changes would be fragile. It seems best to just disable this warning - we've seen something similar on SNC (which appears to use the same frontend!..). Fixes #182.
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index b06eacb..a6930a1 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -76,6 +76,10 @@
# pragma diag_suppress=237 // controlling expression is constant
#endif
+#ifdef __TI_COMPILER_VERSION__
+# pragma diag_suppress 179 // function was declared but never referenced
+#endif
+
// Inlining controls
#if defined(_MSC_VER) && _MSC_VER >= 1300
# define PUGI__NO_INLINE __declspec(noinline)