Ignore deprecated warning on Mac
This commit is contained in:
parent
e58bbd197f
commit
ed16db9df6
|
@ -946,7 +946,10 @@ void MainWindow::setVisible(bool visible)
|
||||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 // lion
|
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 // lion
|
||||||
// dock hide only supported on lion :(
|
// dock hide only supported on lion :(
|
||||||
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
GetCurrentProcess(&psn);
|
GetCurrentProcess(&psn);
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
if (visible)
|
if (visible)
|
||||||
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue