Skip to content

Commit 6c585c1

Browse files
authored
Merge pull request #370 from macvim-dev/fix/warnings
Suppress warnings for macOS 10.12
2 parents fa649b7 + c036347 commit 6c585c1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/MacVim/MacVim.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040

4141
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
4242
// Deprecated constants in 10.12 SDK
43+
# define NSAlertStyleCritical NSCriticalAlertStyle
44+
# define NSAlertStyleInformational NSInformationalAlertStyle
4345
# define NSAlertStyleWarning NSWarningAlertStyle
4446
# define NSCompositingOperationSourceOver NSCompositeSourceOver
4547
# define NSControlSizeRegular NSRegularControlSize

src/MacVim/gui_macvim.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,9 +1507,9 @@
15071507
// Ensure no data is on the output queue before presenting the dialog.
15081508
gui_macvim_force_flush();
15091509

1510-
int style = NSInformationalAlertStyle;
1510+
int style = NSAlertStyleInformational;
15111511
if (VIM_WARNING == type) style = NSAlertStyleWarning;
1512-
else if (VIM_ERROR == type) style = NSCriticalAlertStyle;
1512+
else if (VIM_ERROR == type) style = NSAlertStyleCritical;
15131513

15141514
NSMutableDictionary *attr = [NSMutableDictionary
15151515
dictionaryWithObject:[NSNumber numberWithInt:style]

src/MacVim/qlstephen/RegexKitLite.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737
*/
3838

39+
#define OSSPINLOCK_USE_INLINED 1
40+
3941
#include <CoreFoundation/CFBase.h>
4042
#include <CoreFoundation/CFArray.h>
4143
#include <CoreFoundation/CFString.h>

0 commit comments

Comments
 (0)