Suppress warnings for macOS 10.12

This commit is contained in:
Kazuki Sakamoto
2016-10-02 01:19:13 -07:00
parent fa649b7684
commit c036347336
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -40,6 +40,8 @@
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
// Deprecated constants in 10.12 SDK
# define NSAlertStyleCritical NSCriticalAlertStyle
# define NSAlertStyleInformational NSInformationalAlertStyle
# define NSAlertStyleWarning NSWarningAlertStyle
# define NSCompositingOperationSourceOver NSCompositeSourceOver
# define NSControlSizeRegular NSRegularControlSize
+2 -2
View File
@@ -1507,9 +1507,9 @@ gui_mch_dialog(
// Ensure no data is on the output queue before presenting the dialog.
gui_macvim_force_flush();
int style = NSInformationalAlertStyle;
int style = NSAlertStyleInformational;
if (VIM_WARNING == type) style = NSAlertStyleWarning;
else if (VIM_ERROR == type) style = NSCriticalAlertStyle;
else if (VIM_ERROR == type) style = NSAlertStyleCritical;
NSMutableDictionary *attr = [NSMutableDictionary
dictionaryWithObject:[NSNumber numberWithInt:style]
+2
View File
@@ -36,6 +36,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define OSSPINLOCK_USE_INLINED 1
#include <CoreFoundation/CFBase.h>
#include <CoreFoundation/CFArray.h>
#include <CoreFoundation/CFString.h>