|
Boost-Commit : |
From: bdawes_at_[hidden]
Date: 2007-09-25 09:47:11
Author: bemandawes
Date: 2007-09-25 09:45:52 EDT (Tue, 25 Sep 2007)
New Revision: 39520
URL: http://svn.boost.org/trac/boost/changeset/39520
Log:
Clear compiler warnings
Text files modified:
trunk/boost/filesystem/path.hpp | 2 +-
trunk/libs/detail/utf8_codecvt_facet.cpp | 8 ++++----
trunk/libs/filesystem/src/operations.cpp | 8 ++++----
trunk/libs/filesystem/test/lpath.hpp | 2 +-
trunk/libs/filesystem/test/wide_test.cpp | 2 +-
5 files changed, 11 insertions(+), 11 deletions(-)
Modified: trunk/boost/filesystem/path.hpp
==============================================================================
--- trunk/boost/filesystem/path.hpp (original)
+++ trunk/boost/filesystem/path.hpp 2007-09-25 09:45:52 EDT (Tue, 25 Sep 2007)
@@ -607,7 +607,7 @@
template<class Path>
const char * what( const char * sys_err_what,
- const Path & path1, const Path & path2, std::string & target )
+ const Path & /*path1*/, const Path & /*path2*/, std::string & /*target*/ )
{
return sys_err_what;
}
Modified: trunk/libs/detail/utf8_codecvt_facet.cpp
==============================================================================
--- trunk/libs/detail/utf8_codecvt_facet.cpp (original)
+++ trunk/libs/detail/utf8_codecvt_facet.cpp 2007-09-25 09:45:52 EDT (Tue, 25 Sep 2007)
@@ -139,8 +139,8 @@
int shift_exponent = (cont_octet_count) * 6;
// Process the first character
- *to++ = octet1_modifier_table[cont_octet_count] +
- (unsigned char)(*from / (1 << shift_exponent));
+ *to++ = static_cast<char>(octet1_modifier_table[cont_octet_count] +
+ (unsigned char)(*from / (1 << shift_exponent)));
// Process the continuation characters
// Invariants: At the start of the loop:
@@ -150,7 +150,7 @@
int i = 0;
while (i != cont_octet_count && to != to_end) {
shift_exponent -= 6;
- *to++ = 0x80 + ((*from / (1 << shift_exponent)) % (1 << 6));
+ *to++ = static_cast<char>(0x80 + ((*from / (1 << shift_exponent)) % (1 << 6)));
++i;
}
// If we filled up the out buffer before encoding the character
@@ -199,7 +199,7 @@
last_octet_count = (get_octet_count(*from_next));
++char_count;
}
- return from_next-from_end;
+ return static_cast<int>(from_next-from_end);
}
unsigned int utf8_codecvt_facet::get_octet_count(
Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2007-09-25 09:45:52 EDT (Tue, 25 Sep 2007)
@@ -650,8 +650,8 @@
#endif
BOOST_FILESYSTEM_DECL error_code
- create_symlink_api( const std::wstring & to_ph,
- const std::wstring & from_ph )
+ create_symlink_api( const std::wstring & /*to_ph*/,
+ const std::wstring & /*from_ph*/ )
{ return error_code( ERROR_NOT_SUPPORTED, system_category ); }
BOOST_FILESYSTEM_DECL error_code
@@ -830,8 +830,8 @@
#endif
BOOST_FILESYSTEM_DECL error_code
- create_symlink_api( const std::string & to_ph,
- const std::string & from_ph )
+ create_symlink_api( const std::string & /*to_ph*/,
+ const std::string & /*from_ph*/ )
{ return error_code( ERROR_NOT_SUPPORTED, system_category ); }
BOOST_FILESYSTEM_DECL error_code
Modified: trunk/libs/filesystem/test/lpath.hpp
==============================================================================
--- trunk/libs/filesystem/test/lpath.hpp (original)
+++ trunk/libs/filesystem/test/lpath.hpp 2007-09-25 09:45:52 EDT (Tue, 25 Sep 2007)
@@ -34,7 +34,7 @@
static size_t length(const char_type* s)
{ const char_type* b=s; for(;*s!=0L;++s){} return s-b; }
- static const char_type* find(const char_type* s, size_t n, const char_type& a)
+ static const char_type* find(const char_type* /*s*/, size_t /*n*/, const char_type& /*a*/)
{ return 0; }
// copy semantics will do for wide_test
Modified: trunk/libs/filesystem/test/wide_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/wide_test.cpp (original)
+++ trunk/libs/filesystem/test/wide_test.cpp 2007-09-25 09:45:52 EDT (Tue, 25 Sep 2007)
@@ -121,7 +121,7 @@
// test_main ---------------------------------------------------------------//
-int test_main( int argc, char * argv[] )
+int test_main( int argc, char * /*argv*/[] )
{
if ( argc > 1 ) cleanup = false;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk