stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r638501 - /stdcxx/trunk/include/loc/_num_get.h
Date Tue, 18 Mar 2008 18:46:09 GMT
Author: sebor
Date: Tue Mar 18 11:46:06 2008
New Revision: 638501

URL: http://svn.apache.org/viewvc?rev=638501&view=rev
Log:
2008-03-18  Martin Sebor  <sebor@roguewave.com>

	* _num_get.h [LONG_MAX <= SHRT_MAX] (__rw_check_overflow_short):
	Silenced unused parameter warnings/remarks.
	[LONG_MAX <= INT_MAX] (__rw_check_overflow_int): Same.

Modified:
    stdcxx/trunk/include/loc/_num_get.h

Modified: stdcxx/trunk/include/loc/_num_get.h
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/loc/_num_get.h?rev=638501&r1=638500&r2=638501&view=diff
==============================================================================
--- stdcxx/trunk/include/loc/_num_get.h (original)
+++ stdcxx/trunk/include/loc/_num_get.h Tue Mar 18 11:46:06 2008
@@ -292,11 +292,15 @@
         __err |= _RW::__rw_failbit;
         return short (_RWSTD_SHRT_MAX);
     }
-    else
+
+#else   // if LONG_MAX <= SHRT_MAX
+
+    _RWSTD_UNUSED (__flags);
+    _RWSTD_UNUSED (__err);
 
 #endif   // _RWSTD_SHRT_MAX < _RWSTD_LONG_MAX
 
-        return _RWSTD_STATIC_CAST (short, __lval);
+    return _RWSTD_STATIC_CAST (short, __lval);
 }
 
 inline int
@@ -330,11 +334,15 @@
         __err |= _RW::__rw_failbit;
         return int (_RWSTD_INT_MAX);
     }
-    else
+
+#else   // if LONG_MAX <= INT_MAX
+
+    _RWSTD_UNUSED (__flags);
+    _RWSTD_UNUSED (__err);
 
 #endif   // _RWSTD_INT_MAX < _RWSTD_LONG_MAX
 
-        return _RWSTD_STATIC_CAST (int, __lval);
+    return _RWSTD_STATIC_CAST (int, __lval);
 }
 
 }   // namespace __rw



Mime
View raw message