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

Stephan Bergmann sbergman at redhat.com
Mon Nov 27 22:06:32 UTC 2017


 xmlsecurity/source/gpg/CertificateImpl.hxx      |    7 +++++++
 xmlsecurity/source/gpg/SecurityEnvironment.hxx  |    7 +++++++
 xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx |    7 +++++++
 3 files changed, 21 insertions(+)

New commits:
commit 68cf1dc0fc7af806dcff87a0bd6193bb090446b9
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Nov 27 15:15:30 2017 +0100

    Silence clang-cl -Werror,-Wundef in workdir/UnpackedTarball/gpgmepp/ includes
    
    > workdir/UnpackedTarball/libgpg-error/src\gpg-error.h(709,5):  error: '__GNUC__' is not defined, evaluates to 0 [-Werror,-Wundef]
    > #if __GNUC__
    >     ^
    > 1 error generated.
    
    Change-Id: Icae46745069431e60faa7d2e6ca44ab800e72b95
    Reviewed-on: https://gerrit.libreoffice.org/45341
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/xmlsecurity/source/gpg/CertificateImpl.hxx b/xmlsecurity/source/gpg/CertificateImpl.hxx
index 63cddc6dc7b9..938b76bc74a1 100644
--- a/xmlsecurity/source/gpg/CertificateImpl.hxx
+++ b/xmlsecurity/source/gpg/CertificateImpl.hxx
@@ -26,7 +26,14 @@
 #include <com/sun/star/security/CertificateKind.hpp>
 #include <com/sun/star/security/XCertificate.hpp>
 
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wundef"
+#endif
 #include <key.h>
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic pop
+#endif
 
 class CertificateImpl : public cppu::WeakImplHelper< css::security::XCertificate,
                                                      css::lang::XUnoTunnel >,
diff --git a/xmlsecurity/source/gpg/SecurityEnvironment.hxx b/xmlsecurity/source/gpg/SecurityEnvironment.hxx
index fda9d706c6a6..00480824b72a 100644
--- a/xmlsecurity/source/gpg/SecurityEnvironment.hxx
+++ b/xmlsecurity/source/gpg/SecurityEnvironment.hxx
@@ -24,7 +24,14 @@
 #include <com/sun/star/security/CertificateValidity.hpp>
 #include <com/sun/star/lang/XUnoTunnel.hpp>
 
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wundef"
+#endif
 #include <gpgme.h>
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic pop
+#endif
 #include <context.h>
 
 class SecurityEnvironmentGpg : public cppu::WeakImplHelper< css::xml::crypto::XSecurityEnvironment,
diff --git a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
index 795ae85e35a4..40ff550aea9b 100644
--- a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
+++ b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
@@ -22,7 +22,14 @@
 #include <cppuhelper/supportsservice.hxx>
 #include <gpg/xmlsignature_gpgimpl.hxx>
 
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wundef"
+#endif
 #include <gpgme.h>
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic pop
+#endif
 #include <context.h>
 #include <key.h>
 #include <data.h>


More information about the Libreoffice-commits mailing list