external/coinmp/UnpackedTarball_coinmp.mk |    1 +
 external/coinmp/pedantic-errors.patch     |   11 +++++++++++
 2 files changed, 12 insertions(+)

New commits:
commit 9d0c46276e71cf8edabe617d4e3f47c296afd655
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue May 17 15:06:40 2022 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Sun Nov 27 23:30:54 2022 +0100

    external/coinmp: Avoid -Werror,-Wc++2b-extensions
    
    > ClpSimplex.cpp:6038:2: error: use of a '#elifdef' directive is a C++2b 
extension [-Werror,-Wc++2b-extensions]
    > #elifdef COIN_HAS_MUMPS
    >  ^
    
    seen with Clang 15 trunk since
    
<https://github.com/llvm/llvm-project/commit/a1545f51a9ef299ca6c6716bd80b862f360453ab>
    "Warn if using `elifdef` & `elifndef` in not C2x & C++2b mode" (and which is
    turned into an error because External_coinmp builds with --pedantic-errors)
    
    Change-Id: I1db213aec91bc17c720fd58270eab452b2e4e0f5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134478
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143329
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tor Lillqvist <t...@collabora.com>

diff --git a/external/coinmp/UnpackedTarball_coinmp.mk 
b/external/coinmp/UnpackedTarball_coinmp.mk
index 0784bbde1ac1..0764d428aace 100644
--- a/external/coinmp/UnpackedTarball_coinmp.mk
+++ b/external/coinmp/UnpackedTarball_coinmp.mk
@@ -46,6 +46,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,coinmp,\
        external/coinmp/Wnon-c-typedef-for-linkage.patch \
        external/coinmp/register.patch \
        external/coinmp/configure-exit.patch \
+       external/coinmp/pedantic-errors.patch \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/coinmp/pedantic-errors.patch 
b/external/coinmp/pedantic-errors.patch
new file mode 100644
index 000000000000..2cf86b7e0ef4
--- /dev/null
+++ b/external/coinmp/pedantic-errors.patch
@@ -0,0 +1,11 @@
+--- Clp/src/ClpSimplex.cpp
++++ Clp/src/ClpSimplex.cpp
+@@ -6035,7 +6035,7 @@
+      assert (!doKKT);
+      ClpCholeskyTaucs * cholesky = new ClpCholeskyTaucs();
+      barrier.setCholesky(cholesky);
+-#elifdef COIN_HAS_MUMPS
++#elif defined COIN_HAS_MUMPS
+      if (!doKKT) {
+           ClpCholeskyMumps * cholesky = new ClpCholeskyMumps();
+           barrier.setCholesky(cholesky);

Reply via email to