summaryrefslogtreecommitdiffstats
path: root/libcxx/include/stdexcept
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2015-02-05 07:40:48 +0000
committerDimitry Andric <dimitry@andric.com>2015-02-05 07:40:48 +0000
commitb1e78df0fa1cf9a0e85f4cd11702cfad28581723 (patch)
tree34c47e71f681d115c3cddd72435b0edae52f1048 /libcxx/include/stdexcept
parent7e187f1be98e41e79286283719fa85dbce413dbd (diff)
downloadbcm5719-llvm-b1e78df0fa1cf9a0e85f4cd11702cfad28581723.tar.gz
bcm5719-llvm-b1e78df0fa1cf9a0e85f4cd11702cfad28581723.zip
Fix unused private field warning in stdexcept after r207695.
Add a new _LIBCPP_UNUSED define in __config, which can be used to indicate explicitly unused items, and apply it to the __imp__ field of __libcpp_refstring. Somebody who knows about Microsoft C++ and IBM C++ should fill in the unused attribute syntax appropriate for those compilers, if there is any. Differential Revision: http://reviews.llvm.org/D6836 llvm-svn: 228281
Diffstat (limited to 'libcxx/include/stdexcept')
-rw-r--r--libcxx/include/stdexcept2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/stdexcept b/libcxx/include/stdexcept
index 5fc912a644b..f251806fba6 100644
--- a/libcxx/include/stdexcept
+++ b/libcxx/include/stdexcept
@@ -53,7 +53,7 @@ public:
#ifndef _LIBCPP___REFSTRING
_LIBCPP_BEGIN_NAMESPACE_STD
class _LIBCPP_HIDDEN __libcpp_refstring {
- const char *__imp_;
+ const char *__imp_ _LIBCPP_UNUSED;
};
_LIBCPP_END_NAMESPACE_STD
#endif
OpenPOWER on IntegriCloud