aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/mac/SkSampleNSView.mm
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-06 12:04:00 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-06 12:04:00 +0000
commit679ab317cd4b434e19904b71cabd8e801a629bb1 (patch)
tree2ef59d1ce0776a0fbdba33171663c948fe37224b /src/views/mac/SkSampleNSView.mm
parent42639cddc33746b351bbf07c540711eefffe191a (diff)
fix warnings on Mac in src/views
Fix these class of warnings: - unused functions - unused locals - sign mismatch - missing function prototypes - missing newline at end of file - 64 to 32 bit truncation The changes prefer to link in dead code in the debug build with 'if (false)' than to comment it out, but trivial cases are commented out or sometimes deleted if it appears to be a copy/paste error. Review URL: https://codereview.appspot.com/6300045 git-svn-id: http://skia.googlecode.com/svn/trunk@4176 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/views/mac/SkSampleNSView.mm')
-rw-r--r--src/views/mac/SkSampleNSView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/mac/SkSampleNSView.mm b/src/views/mac/SkSampleNSView.mm
index 242544fa69..ce5f8aab0a 100644
--- a/src/views/mac/SkSampleNSView.mm
+++ b/src/views/mac/SkSampleNSView.mm
@@ -12,7 +12,7 @@
@implementation SkSampleNSView
- (id)initWithDefaults {
- if (self = [super initWithDefaults]) {
+ if ((self = [super initWithDefaults])) {
fWind = new SampleWindow(self, *_NSGetArgc(), *_NSGetArgv(), NULL);
}
return self;