diff options
Diffstat (limited to 'libstdc++-v3/include/debug/functions.h')
-rw-r--r-- | libstdc++-v3/include/debug/functions.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/include/debug/functions.h b/libstdc++-v3/include/debug/functions.h index 744071120cc..6a0d892127b 100644 --- a/libstdc++-v3/include/debug/functions.h +++ b/libstdc++-v3/include/debug/functions.h @@ -151,7 +151,8 @@ namespace __gnu_debug template<typename _InputIterator> inline _InputIterator __check_valid_range(const _InputIterator& __first, - const _InputIterator& __last) + const _InputIterator& __last + __attribute__((__unused__))) { _GLIBCXX_DEBUG_ASSERT(__gnu_debug::__valid_range(__first, __last)); return __first; @@ -160,7 +161,8 @@ namespace __gnu_debug /** Checks that __s is non-NULL or __n == 0, and then returns __s. */ template<typename _CharT, typename _Integer> inline const _CharT* - __check_string(const _CharT* __s, const _Integer& __n) + __check_string(const _CharT* __s, + const _Integer& __n __attribute__((__unused__))) { #ifdef _GLIBCXX_DEBUG_PEDANTIC _GLIBCXX_DEBUG_ASSERT(__s != 0 || __n == 0); |