From 00aab5e69819c06cb59ae587a57f7576afd3f5cb Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 11 Oct 2023 10:17:31 +0200 Subject: Add legit #pragma clang diagnostic ignored "-Wdeprecated-declarations" --- src/Fl_Native_File_Chooser_MAC.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Fl_Native_File_Chooser_MAC.mm') 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]; -- cgit v1.2.3