Skip to content

Commit

Permalink
chore: suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
r-plus committed Apr 23, 2023
1 parent 10109e6 commit 0abd8bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SwipeShiftCaret.x
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ static void PopupMenuFromRect(CGRect rect)
if (@available(iOS 13.0, *)) {
[mc showMenuFromView:tv rect:rect];
} else {
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
[mc setTargetRect:rect inView:tv];
[mc setMenuVisible:YES animated:YES];
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
}
}
// }}}
Expand Down

0 comments on commit 0abd8bc

Please sign in to comment.