From 8ac5b55ada3f408b8a6084a2e1811bbf4ee7ad51 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 10 Jan 2021 11:51:00 +0100 Subject: [PATCH] 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 --- javaunohelper/source/bootstrap.cxx | 8 ++++++++ javaunohelper/source/javaunohelper.cxx | 8 ++++++++ javaunohelper/source/vm.hxx | 8 ++++++++ stoc/source/javaloader/javaloader.cxx | 8 ++++++++ stoc/source/javavm/javavm.hxx | 7 +++++++ stoc/source/javavm/jvmargs.hxx | 8 +++++++- 6 files changed, 46 insertions(+), 1 deletion(-) diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx index e7bf63b841de..cec9d500ba9c 100644 --- a/javaunohelper/source/bootstrap.cxx +++ b/javaunohelper/source/bootstrap.cxx @@ -34,7 +34,15 @@ #include #include +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include +#if defined __clang__ +#pragma clang diagnostic pop +#endif + #include #include diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx index abf57e17f0a4..8db57c5b78f3 100644 --- a/javaunohelper/source/javaunohelper.cxx +++ b/javaunohelper/source/javaunohelper.cxx @@ -30,7 +30,15 @@ #include #include +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include +#if defined __clang__ +#pragma clang diagnostic pop +#endif + #include #include "juhx-export-functions.hxx" diff --git a/javaunohelper/source/vm.hxx b/javaunohelper/source/vm.hxx index d257c796cd1f..6681dfffac21 100644 --- a/javaunohelper/source/vm.hxx +++ b/javaunohelper/source/vm.hxx @@ -22,7 +22,15 @@ #include +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include +#if defined __clang__ +#pragma clang diagnostic pop +#endif + #include #include 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 +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include +#if defined __clang__ +#pragma clang diagnostic pop +#endif + #include 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 +#if defined __clang__ +#pragma clang diagnostic pop +#endif #include #include 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 #include +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-attributes" +#endif #include - +#if defined __clang__ +#pragma clang diagnostic pop +#endif extern "C" { typedef jint JNICALL JNI_InitArgs_Type(void *);