Resolve all warnings for Preferences target.

CQTexperiment
Dzmitry Neviadomski 2021-01-10 03:27:39 +03:00
parent 826b108429
commit 0df2dc2160
6 changed files with 8 additions and 5 deletions

View File

@ -363,7 +363,7 @@
089C1669FE841209C02AAC07 /* Project object */ = { 089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
LastUpgradeCheck = 1130; LastUpgradeCheck = 1230;
TargetAttributes = { TargetAttributes = {
8D5B49AC048680CD000E48DA = { 8D5B49AC048680CD000E48DA = {
DevelopmentTeam = ""; DevelopmentTeam = "";
@ -567,6 +567,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES;
@ -613,6 +614,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES;

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1150" LastUpgradeVersion = "1230"
version = "1.3"> version = "1.3">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"

View File

@ -3,5 +3,6 @@
// //
#ifdef __OBJC__ #ifdef __OBJC__
#import <AssertMacros.h>
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#endif #endif

View File

@ -35,7 +35,7 @@
if ( oldPath != nil ) if ( oldPath != nil )
[panel setDirectoryURL:[NSURL fileURLWithPath:oldPath]]; [panel setDirectoryURL:[NSURL fileURLWithPath:oldPath]];
NSInteger result = [panel runModal]; NSInteger result = [panel runModal];
if(result == NSOKButton) if(result == NSModalResponseOK)
{ {
[[NSUserDefaults standardUserDefaults] setValue:[[panel URL] path] forKey:@"soundFontPath"]; [[NSUserDefaults standardUserDefaults] setValue:[[panel URL] path] forKey:@"soundFontPath"];
} }

View File

@ -2,8 +2,6 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import <CoreAudio/AudioHardware.h>
@interface OutputsArrayController : NSArrayController @interface OutputsArrayController : NSArrayController
{ {
} }

View File

@ -1,5 +1,7 @@
#import "OutputsArrayController.h" #import "OutputsArrayController.h"
#import <CoreAudio/AudioHardware.h>
@implementation OutputsArrayController @implementation OutputsArrayController
- (void)awakeFromNib - (void)awakeFromNib