summaryrefslogtreecommitdiff
path: root/src/Fl_Native_File_Chooser_MAC.mm
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-11 10:17:31 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-11 10:17:31 +0200
commit00aab5e69819c06cb59ae587a57f7576afd3f5cb (patch)
treeb975a2f0905626580f22354517ab08fa04a782ce /src/Fl_Native_File_Chooser_MAC.mm
parentfcaae0353773eaf3aebc61359bc5d7c47ba20866 (diff)
Add legit #pragma clang diagnostic ignored "-Wdeprecated-declarations"
Diffstat (limited to 'src/Fl_Native_File_Chooser_MAC.mm')
-rw-r--r--src/Fl_Native_File_Chooser_MAC.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm
index 425194729..4272a0d5a 100644
--- a/src/Fl_Native_File_Chooser_MAC.mm
+++ b/src/Fl_Native_File_Chooser_MAC.mm
@@ -688,7 +688,10 @@ int Fl_Quartz_Native_File_Chooser_Driver::runmodal()
else
#endif
{ // the deprecation warning can be ignored because runs only for macOS < 10.6
- retval = [_panel runModalForDirectory:dir file:fname];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ retval = [_panel runModalForDirectory:dir file:fname]; // deprecated in 10.6
+#pragma clang diagnostic pop
}
[dir release];
[preset release];