vcl/quartz/AquaGraphicsBackend.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 556b095dfb99c5db92328a63ffa30f07d8840db2
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Mon Oct 9 16:44:36 2023 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Tue Oct 10 08:07:09 2023 +0200

    Silence a new -Werror,-Wdeprecated-declarations for now
    
    Change-Id: I5b457a4e1b9804b53a72d53a49ca9695424fc0c3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157708
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/vcl/quartz/AquaGraphicsBackend.cxx 
b/vcl/quartz/AquaGraphicsBackend.cxx
index 729f47f66dc0..4badefacf435 100644
--- a/vcl/quartz/AquaGraphicsBackend.cxx
+++ b/vcl/quartz/AquaGraphicsBackend.cxx
@@ -1141,7 +1141,11 @@ bool AquaGraphicsBackend::drawEPS(tools::Long nX, 
tools::Long nY, tools::Long nW
 {
     // convert the raw data to an NSImageRef
     NSData* xNSData = [NSData dataWithBytes:pEpsData 
length:static_cast<int>(nByteCount)];
+    SAL_WNODEPRECATED_DECLARATIONS_PUSH
+    // 'NSEPSImageRep' is deprecated: first deprecated in macOS 14.0 - 
`NSEPSImageRep` instances
+    // cannot be created on macOS 14.0 and later
     NSImageRep* xEpsImage = [NSEPSImageRep imageRepWithData:xNSData];
+    SAL_WNODEPRECATED_DECLARATIONS_POP
     if (!xEpsImage)
     {
         return false;

Reply via email to