diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-02-27 08:49:16 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-02-27 08:49:16 -0800 |
commit | b127cfb18e214b5188924a41f2f8d8ae38bf473f (patch) | |
tree | 6083c19a765374c195cfc2b69bc3d4d54f34c000 | |
parent | 2ec3579f296fdea783a806179424b28b2f3c0100 (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.
-rw-r--r-- | src/pugixml.cpp | 4 |
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) |