This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch next_stable
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/next_stable by this push:
new 68982f0f Prevent some MSVC warnings
68982f0f is described below
commit 68982f0f48f2f77d28a8838a0b7b5ca078700a6c
Author: Stephen Webb <[email protected]>
AuthorDate: Sat Nov 5 16:48:28 2022 +1100
Prevent some MSVC warnings
---
src/main/cpp/aprsocket.cpp | 2 +-
src/main/include/log4cxx/rolling/timebasedrollingpolicy.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/cpp/aprsocket.cpp b/src/main/cpp/aprsocket.cpp
index 1cacbb81..e212c689 100644
--- a/src/main/cpp/aprsocket.cpp
+++ b/src/main/cpp/aprsocket.cpp
@@ -109,7 +109,7 @@ size_t APRSocket::write(ByteBuffer& buf)
throw ClosedChannelException();
}
- int totalWritten = 0;
+ size_t totalWritten = 0;
while (buf.remaining() > 0)
{
diff --git a/src/main/include/log4cxx/rolling/timebasedrollingpolicy.h
b/src/main/include/log4cxx/rolling/timebasedrollingpolicy.h
index 6809bbe6..54ef05a7 100755
--- a/src/main/include/log4cxx/rolling/timebasedrollingpolicy.h
+++ b/src/main/include/log4cxx/rolling/timebasedrollingpolicy.h
@@ -27,7 +27,7 @@
#if defined(_MSC_VER)
#pragma warning ( push )
- #pragma warning ( disable: 4251 )
+ #pragma warning ( disable: 4250 )
#endif
namespace log4cxx