Ignore deprecated warning on Mac

This commit is contained in:
Jerry (Xinyu Hou) 2016-12-29 14:54:26 +00:00 committed by Andrew Nelless
parent e58bbd197f
commit ed16db9df6
1 changed files with 3 additions and 0 deletions

View File

@ -946,7 +946,10 @@ void MainWindow::setVisible(bool visible)
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 // lion
// dock hide only supported on lion :(
ProcessSerialNumber psn = { 0, kCurrentProcess };
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
GetCurrentProcess(&psn);
#pragma GCC diagnostic pop
if (visible)
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
else