From defede1691f51e2078b98e298979a60087708fb0 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 2 Sep 2018 17:01:50 -0400 Subject: Use PascalCase for constants in gfx --- gfx/cocoa.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gfx/cocoa.m') diff --git a/gfx/cocoa.m b/gfx/cocoa.m index 6c0f0d66..237202d9 100644 --- a/gfx/cocoa.m +++ b/gfx/cocoa.m @@ -23,8 +23,6 @@ #import "gfx.h" -#define UNUSED __attribute__((unused)) - @interface BufferView : NSView { size_t bufSize; uint32_t *buf; @@ -61,7 +59,8 @@ [self draw]; } -- (void) drawRect: (NSRect) UNUSED dirtyRect { +- (void) drawRect: (NSRect) dirtyRect { + (void)dirtyRect; NSSize size = [self frame].size; CGContextRef ctx = [[NSGraphicsContext currentContext] CGContext]; CGImageRef image = CGImageCreate( @@ -106,7 +105,8 @@ @implementation Delegate - (BOOL) applicationShouldTerminateAfterLastWindowClosed: - (NSApplication *) UNUSED sender { + (NSApplication *) sender { + (void)sender; return YES; } @end -- cgit 1.4.1