Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64785 - in sandbox/SOC/2010/process: boost/process boost/process/detail libs/process/test
From: boris_at_[hidden]
Date: 2010-08-13 09:15:12


Author: bschaeling
Date: 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
New Revision: 64785
URL: http://svn.boost.org/trac/boost/changeset/64785

Log:
Patched code to suppress compiler warnings
Text files modified:
   sandbox/SOC/2010/process/boost/process/context.hpp | 3 +++
   sandbox/SOC/2010/process/boost/process/detail/basic_status_service.hpp | 4 ++--
   sandbox/SOC/2010/process/boost/process/detail/status_impl.hpp | 3 +++
   sandbox/SOC/2010/process/boost/process/detail/systembuf.hpp | 3 ++-
   sandbox/SOC/2010/process/boost/process/process.hpp | 3 +++
   sandbox/SOC/2010/process/libs/process/test/handle.cpp | 4 ++--
   6 files changed, 15 insertions(+), 5 deletions(-)

Modified: sandbox/SOC/2010/process/boost/process/context.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/context.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/context.hpp 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
@@ -133,6 +133,9 @@
 #elif defined(BOOST_WINDOWS_API)
     void setup(STARTUPINFOA &sainfo)
     {
+#if defined(BOOST_MSVC)
+ sainfo;
+#endif
     }
 #endif
 };

Modified: sandbox/SOC/2010/process/boost/process/detail/basic_status_service.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/detail/basic_status_service.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/detail/basic_status_service.hpp 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
@@ -64,8 +64,6 @@
         interrupt_pid_(-1),
         pids_(0)
 #elif defined(BOOST_WINDOWS_API)
- work_thread_(&basic_status_service<StatusImplementation>::work_thread,
- this),
         run_(true)
 #endif
     {
@@ -73,6 +71,8 @@
         handles_.push_back(CreateEvent(NULL, FALSE, FALSE, NULL));
         if (handles_[0] == NULL)
             BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR("CreateEvent() failed");
+ work_thread_ = boost::thread(
+ &basic_status_service<StatusImplementation>::work_thread, this);
 #endif
     }
 

Modified: sandbox/SOC/2010/process/boost/process/detail/status_impl.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/detail/status_impl.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/detail/status_impl.hpp 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
@@ -50,6 +50,9 @@
 {
     virtual void operator()(int exit_code)
     {
+#if defined(BOOST_MSVC)
+ exit_code;
+#endif
     }
 };
 

Modified: sandbox/SOC/2010/process/boost/process/detail/systembuf.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/detail/systembuf.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/detail/systembuf.hpp 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
@@ -163,7 +163,8 @@
 
         if (!traits_type::eq_int_type(c, traits_type::eof()))
         {
- traits_type::assign(*pptr(), c);
+ traits_type::assign(*pptr(), static_cast<traits_type::char_type>(
+ c));
             pbump(1);
         }
 

Modified: sandbox/SOC/2010/process/boost/process/process.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/process.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/process.hpp 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
@@ -113,6 +113,9 @@
         if (kill(id_, force ? SIGKILL : SIGTERM) == -1)
             BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR("kill(2) failed");
 #elif defined(BOOST_WINDOWS_API)
+#if defined(BOOST_MSVC)
+ force;
+#endif
         HANDLE h = OpenProcess(PROCESS_TERMINATE, FALSE, id_);
         if (h == NULL)
             BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR("OpenProcess() failed");

Modified: sandbox/SOC/2010/process/libs/process/test/handle.cpp
==============================================================================
--- sandbox/SOC/2010/process/libs/process/test/handle.cpp (original)
+++ sandbox/SOC/2010/process/libs/process/test/handle.cpp 2010-08-13 09:14:56 EDT (Fri, 13 Aug 2010)
@@ -49,11 +49,11 @@
 #elif defined(BOOST_WINDOWS_API)
     DWORD written;
     BOOST_REQUIRE(WriteFile(write_end.native(), "test", 4, &written, NULL));
- BOOST_CHECK_EQUAL(written, 4);
+ BOOST_CHECK_EQUAL(written, 4u);
     char buf[4];
     DWORD read;
     BOOST_REQUIRE(ReadFile(read_end.native(), buf, sizeof(buf), &read, NULL));
- BOOST_CHECK_EQUAL(read, 4);
+ BOOST_CHECK_EQUAL(read, 4u);
 #endif
 
     read_end.close();


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