diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-01-10 11:51:00 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-01-10 12:35:13 +0100 |
commit | 8ac5b55ada3f408b8a6084a2e1811bbf4ee7ad51 (patch) | |
tree | bb6920204dfdb7aad2828cdcdd3a56a4cf03a74b /stoc/source | |
parent | e60708def22f75d677c6531a7c59630226a04a80 (diff) |
Fix some warnings for Raspberry pi 4 (part5)
Change-Id: I843746f976855168c791c97a56bcce430af1eea5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109046
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 8 | ||||
-rw-r--r-- | stoc/source/javavm/javavm.hxx | 7 | ||||
-rw-r--r-- | stoc/source/javavm/jvmargs.hxx | 8 |
3 files changed, 22 insertions, 1 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index 524988146b4b..08a6e94b9318 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -35,7 +35,15 @@ #include <com/sun/star/java/XJavaVM.hpp> +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include <jni.h> +#if defined __clang__ +#pragma clang diagnostic pop +#endif + #include <cppuhelper/factory.hxx> diff --git a/stoc/source/javavm/javavm.hxx b/stoc/source/javavm/javavm.hxx index 896d380572ec..8b721bd62825 100644 --- a/stoc/source/javavm/javavm.hxx +++ b/stoc/source/javavm/javavm.hxx @@ -20,7 +20,14 @@ #ifndef INCLUDED_STOC_SOURCE_JAVAVM_JAVAVM_HXX #define INCLUDED_STOC_SOURCE_JAVAVM_JAVAVM_HXX +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include <jni.h> +#if defined __clang__ +#pragma clang diagnostic pop +#endif #include <com/sun/star/container/XContainerListener.hpp> #include <com/sun/star/lang/XInitialization.hpp> diff --git a/stoc/source/javavm/jvmargs.hxx b/stoc/source/javavm/jvmargs.hxx index 3533078c4b47..8def483f4f74 100644 --- a/stoc/source/javavm/jvmargs.hxx +++ b/stoc/source/javavm/jvmargs.hxx @@ -25,8 +25,14 @@ #include <vector> #include <rtl/ustring.hxx> +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include <jni.h> - +#if defined __clang__ +#pragma clang diagnostic pop +#endif extern "C" { typedef jint JNICALL JNI_InitArgs_Type(void *); |