[Libreoffice-commits] core.git: vcl/headless

2021-03-01 Thread David Ostrovsky (via logerrit)
 vcl/headless/svpinst.cxx |6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 52dd3d085b95084fa6539aec64700f9b129ea116
Author: David Ostrovsky 
AuthorDate: Sun Feb 28 09:26:54 2021 +0100
Commit: Michael Stahl 
CommitDate: Mon Mar 1 11:59:52 2021 +0100

Fix -Werror=unused-result

Change-Id: I9d6f4b29b6045d5d64c0ee730588299c41d33419
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111689
Tested-by: Jenkins
Reviewed-by: Michael Stahl 

diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 9654243f5ac3..b5540301f21c 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -369,7 +369,11 @@ void SvpSalYieldMutex::doAcquire(sal_uInt32 const 
nLockCount)
 m_bNoYieldLock = true;
 bool const bEvents = pInst->DoYield(false, request == 
SvpRequest::MainThreadDispatchAllEvents);
 m_bNoYieldLock = false;
-write(m_FeedbackFDs[1], , sizeof(bool));
+if (write(m_FeedbackFDs[1], , sizeof(bool)) != 
sizeof(bool))
+{
+SAL_WARN("vcl.headless", "Could not write: " << 
strerror(errno));
+std::abort();
+}
 }
 }
 while (true);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - pyuno/source

2021-01-05 Thread David Ostrovsky (via logerrit)
 pyuno/source/loader/pyuno_loader.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit d29de0b38ef6854bb129e82fd280f33b0d5b9a08
Author: David Ostrovsky 
AuthorDate: Mon Dec 21 07:56:11 2020 +0100
Commit: Adolfo Jayme Barrientos 
CommitDate: Tue Jan 5 22:18:52 2021 +0100

tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9

Change-Id: I220eecfa6aaf4d5cb12e3b4eacadf25843b41452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108403
Tested-by: Jenkins
Reviewed-by: Michael Stahl 
(cherry picked from commit 8be493744cafc2572c701e681ab147fa28c6bc39)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108718
Reviewed-by: David Ostrovsky 
Reviewed-by: Adolfo Jayme Barrientos 

diff --git a/pyuno/source/loader/pyuno_loader.cxx 
b/pyuno/source/loader/pyuno_loader.cxx
index a8722dd835bb..873a3c3bbe71 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -216,7 +216,9 @@ void pythonInit() {
 
 // initialize python
 Py_Initialize();
+#if PY_VERSION_HEX < 0x0309
 PyEval_InitThreads();
+#endif
 
 PyThreadState *tstate = PyThreadState_Get();
 PyEval_ReleaseThread( tstate );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - pyuno/source

2021-01-05 Thread David Ostrovsky (via logerrit)
 pyuno/source/loader/pyuno_loader.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c82bb0297ea0dbba77823230ed36b81a39e8cbab
Author: David Ostrovsky 
AuthorDate: Mon Dec 21 07:56:11 2020 +0100
Commit: Adolfo Jayme Barrientos 
CommitDate: Tue Jan 5 22:12:21 2021 +0100

tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9

Change-Id: I220eecfa6aaf4d5cb12e3b4eacadf25843b41452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108403
Tested-by: Jenkins
Reviewed-by: Michael Stahl 
(cherry picked from commit 8be493744cafc2572c701e681ab147fa28c6bc39)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108719
Reviewed-by: David Ostrovsky 
Reviewed-by: Adolfo Jayme Barrientos 

diff --git a/pyuno/source/loader/pyuno_loader.cxx 
b/pyuno/source/loader/pyuno_loader.cxx
index 07dc748235f9..dc428fb1f3a2 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -229,7 +229,9 @@ PythonInit() {
 
 // initialize python
 Py_Initialize();
+#if PY_VERSION_HEX < 0x0309
 PyEval_InitThreads();
+#endif
 
 PyThreadState *tstate = PyThreadState_Get();
 PyEval_ReleaseThread( tstate );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: pyuno/source

2021-01-05 Thread David Ostrovsky (via logerrit)
 pyuno/source/loader/pyuno_loader.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c099288c232c864583b9a263069390a75bf43524
Author: David Ostrovsky 
AuthorDate: Mon Dec 21 07:56:11 2020 +0100
Commit: Michael Stahl 
CommitDate: Tue Jan 5 12:18:11 2021 +0100

tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9

Change-Id: I220eecfa6aaf4d5cb12e3b4eacadf25843b41452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108403
Tested-by: Jenkins
Reviewed-by: Michael Stahl 

diff --git a/pyuno/source/loader/pyuno_loader.cxx 
b/pyuno/source/loader/pyuno_loader.cxx
index 3a7bfd5cf45f..0db6e637a2a7 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -223,7 +223,9 @@ void pythonInit() {
 
 // initialize python
 Py_Initialize();
+#if PY_VERSION_HEX < 0x0309
 PyEval_InitThreads();
+#endif
 
 PyThreadState *tstate = PyThreadState_Get();
 PyEval_ReleaseThread( tstate );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: pyuno/source

2020-12-19 Thread David Ostrovsky (via logerrit)
 pyuno/source/module/pyuno_module.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6dd1d2268487920e8bda44dfd169a5bda4d62f13
Author: David Ostrovsky 
AuthorDate: Fri Dec 18 11:25:05 2020 +0100
Commit: Michael Stahl 
CommitDate: Sat Dec 19 17:34:50 2020 +0100

tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9

Change-Id: I7cf95ab1f237e315e8bd80b47758839bca34f970
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107946
Reviewed-by: Michael Stahl 
Tested-by: Jenkins

diff --git a/pyuno/source/module/pyuno_module.cxx 
b/pyuno/source/module/pyuno_module.cxx
index 4a9d1921386f..35986b3646ba 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -883,7 +883,9 @@ PyObject* PyInit_pyuno()
 PyUNO_initType();
 PyUNOStruct_initType();
 // noop when called already, otherwise needed to allow multiple threads
+#if PY_VERSION_HEX < 0x0309
 PyEval_InitThreads();
+#endif
 static struct PyModuleDef moduledef =
 {
 PyModuleDef_HEAD_INIT,
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: download.lst external/boost solenv/flatpak-manifest.in

2020-01-15 Thread David Ostrovsky (via logerrit)
 download.lst |4 
 external/boost/UnpackedTarball_boost.mk  |3 
 external/boost/boost-android-unified.patch.1 |8 
 external/boost/sse.patch.0   |  533 ---
 external/boost/ubsan.patch.0 |   35 -
 solenv/flatpak-manifest.in   |6 
 6 files changed, 9 insertions(+), 580 deletions(-)

New commits:
commit e355d2dc89963f26e5856be8b324d386e4c564f6
Author: David Ostrovsky 
AuthorDate: Sat Jan 11 09:44:20 2020 +0100
Commit: Stephan Bergmann 
CommitDate: Wed Jan 15 10:27:06 2020 +0100

Bump boost version to 1.71

Change-Id: Ica4aba467aa00236a4d1c5b0411d1ebc657ea4df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86594
Tested-by: Jenkins
Reviewed-by: Michael Stahl 
Reviewed-by: Stephan Bergmann 

diff --git a/download.lst b/download.lst
index d438db7d9375..0fdcf72b1b87 100644
--- a/download.lst
+++ b/download.lst
@@ -6,8 +6,8 @@ export APR_SHA256SUM := 
1af06e1720a58851d90694a984af18355b65bb0d047be03ec7d659c7
 export APR_TARBALL := apr-1.5.2.tar.gz
 export APR_UTIL_SHA256SUM := 
976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19
 export APR_UTIL_TARBALL := apr-util-1.5.4.tar.gz
-export BOOST_SHA256SUM := 
8f32d4617390d1c2d16f26a27ab60d97807b35440d45891fa340fc2648b04406
-export BOOST_TARBALL := boost_1_69_0.tar.bz2
+export BOOST_SHA256SUM := 
d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee
+export BOOST_TARBALL := boost_1_71_0.tar.bz2
 export BREAKPAD_SHA256SUM := 
7060149be16a8789b0ccf596bdeaf63115f03f520acb508f72a14686fb311cb9
 export BREAKPAD_TARBALL := breakpad.zip
 export BSH_SHA256SUM := 
9e93c73e23aff644b17dfff65674c14150e7f3b38b19635e622235e01c96
diff --git a/external/boost/UnpackedTarball_boost.mk 
b/external/boost/UnpackedTarball_boost.mk
index 33f2f2cd9b50..acb6d6af6b77 100644
--- a/external/boost/UnpackedTarball_boost.mk
+++ b/external/boost/UnpackedTarball_boost.mk
@@ -17,7 +17,6 @@ boost_patches += boost.utility.Wundef.warnings.patch
 
 boost_patches += boost.noiconv.patch
 
-boost_patches += ubsan.patch.0
 boost_patches += rtti.patch.0
 
 # https://svn.boost.org/trac/boost/ticket/11505
@@ -38,8 +37,6 @@ boost_patches += gcc9.patch.0
 
 boost_patches += msvc2017.patch.0
 
-boost_patches += sse.patch.0
-
 boost_patches += c++20-allocator.patch.0
 
 $(eval $(call gb_UnpackedTarball_UnpackedTarball,boost))
diff --git a/external/boost/boost-android-unified.patch.1 
b/external/boost/boost-android-unified.patch.1
index 46181b862f49..6488bf619e2b 100644
--- a/external/boost/boost-android-unified.patch.1
+++ b/external/boost/boost-android-unified.patch.1
@@ -4,8 +4,8 @@
 template 
 struct is_function : public false_type {};
  
--#if defined(__cpp_noexcept_function_type) && !defined(_MSC_VER)
-+#if defined(__cpp_noexcept_function_type) && !defined(_MSC_VER) && !(defined 
__ANDROID__ && defined __clang__ && __clang_major__ == 5 && __clang_minor__ == 
0 && __clang_patchlevel__ == 300080)
+-#if defined(__cpp_noexcept_function_type) && 
!defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM)
++#if defined(__cpp_noexcept_function_type) && 
!defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM) && !(defined __ANDROID__ && 
defined __clang__ && __clang_major__ == 5 && __clang_minor__ == 0 && 
__clang_patchlevel__ == 300080)
  #define BOOST_TT_NOEXCEPT_PARAM , bool NE
  #define BOOST_TT_NOEXCEPT_DECL noexcept(NE)
  #else
@@ -15,8 +15,8 @@
 template 
 struct is_member_function_pointer : public 
is_member_function_pointer {};
  
--#if defined(_MSVC_LANG) && (_MSVC_LANG >= 201703) 
-+#if (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703)) || (defined __ANDROID__ 
&& defined __clang__ && __clang_major__ == 5 && __clang_minor__ == 0 && 
__clang_patchlevel__ == 300080)
+-#if defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM)
++#if defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM) || (defined __ANDROID__ && 
defined __clang__ && __clang_major__ == 5 && __clang_minor__ == 0 && 
__clang_patchlevel__ == 300080)
 // MSVC can't handle noexcept(b) as a deduced template parameter 
 // so we will have to write everything out :(
  #define BOOST_TT_NOEXCEPT_PARAM
diff --git a/external/boost/sse.patch.0 b/external/boost/sse.patch.0
deleted file mode 100644
index d431c185e7f8..
--- a/external/boost/sse.patch.0
+++ /dev/null
@@ -1,533 +0,0 @@
 boost/type_traits/detail/is_function_cxx_11.hpp
-+++ boost/type_traits/detail/is_function_cxx_11.hpp
-@@ -107,8 +107,10 @@
-template 
-struct is_function : public 
true_type {};
- #endif
-+#if !(defined _M_IX86_FP && _M_IX86_FP == 1) // error C2215: '__vectorcall' 
cannot be used with '/arch:SSE'
-template 
-struct is_function : 
public true_type {};
-+#endif
-// const:
- #ifdef __CLR_VER
-template 
-@@ -120,8 +122,10 @@
-template 
-struct is_function : 
public true_type {};
- #endif
-+#if !(defined _M_IX86_FP && _M_IX86_FP == 1) // error C2215: '__vectorcall' 
cannot be 

[Libreoffice-commits] core.git: Branch 'distro/cib/libreoffice-5-2' - sax/source

2019-05-08 Thread David Ostrovsky (via logerrit)
 sax/source/fastparser/fastparser.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7814e7a912aacd4022a5903d8cbf2955a12af5f1
Author: David Ostrovsky 
AuthorDate: Fri Feb 17 22:21:08 2017 +
Commit: Michael Stahl 
CommitDate: Wed May 8 11:59:51 2019 +0200

MSVC 14.0: Fix warning C4702: unreachable code

Change-Id: I38db92984daae40981f2d3f60c4efa38684d5328
Reviewed-on: https://gerrit.libreoffice.org/34382
Tested-by: Jenkins 
Reviewed-by: David Ostrovsky 
(cherry picked from commit 996960f5a25c0833942c03b94356d2137c4d7557)

diff --git a/sax/source/fastparser/fastparser.cxx 
b/sax/source/fastparser/fastparser.cxx
index 88a193eb3732..7494d71aa83e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -927,7 +927,7 @@ bool FastSaxParserImpl::consume(EventList *pEventList)
 return false;
 case EXCEPTION:
 rEntity.throwException( mxDocumentLocator, false );
-return false;
+SAL_FALLTHROUGH; // avoid unreachable code warning with some 
comilers
 default:
 assert(false);
 return false;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: Branch 'feature/cib_contract57b' - sax/source

2019-05-08 Thread David Ostrovsky (via logerrit)
 sax/source/fastparser/fastparser.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e11c790d3a8535bf8e0c2d43533106f1ba1081ab
Author: David Ostrovsky 
AuthorDate: Fri Feb 17 22:21:08 2017 +
Commit: Michael Stahl 
CommitDate: Wed May 8 11:23:08 2019 +0200

MSVC 14.0: Fix warning C4702: unreachable code

Change-Id: I38db92984daae40981f2d3f60c4efa38684d5328
Reviewed-on: https://gerrit.libreoffice.org/34382
Tested-by: Jenkins 
Reviewed-by: David Ostrovsky 
(cherry picked from commit 996960f5a25c0833942c03b94356d2137c4d7557)

diff --git a/sax/source/fastparser/fastparser.cxx 
b/sax/source/fastparser/fastparser.cxx
index 88a193eb3732..7494d71aa83e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -927,7 +927,7 @@ bool FastSaxParserImpl::consume(EventList *pEventList)
 return false;
 case EXCEPTION:
 rEntity.throwException( mxDocumentLocator, false );
-return false;
+SAL_FALLTHROUGH; // avoid unreachable code warning with some 
comilers
 default:
 assert(false);
 return false;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits