summary refs log tree commit diff
path: root/gfx/cocoa.m
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-02 17:01:50 -0400
committerJune McEnroe <june@causal.agency>2018-09-02 17:01:50 -0400
commite0fdc4923fa09efb59f0cb1314bdf0c5b6163144 (patch)
treee2022b242a91e1459088100c639881b13a009a73 /gfx/cocoa.m
parentUse PascalCase for constants (diff)
downloadsrc-e0fdc4923fa09efb59f0cb1314bdf0c5b6163144.tar.gz
src-e0fdc4923fa09efb59f0cb1314bdf0c5b6163144.zip
Use PascalCase for constants in gfx
Diffstat (limited to 'gfx/cocoa.m')
-rw-r--r--gfx/cocoa.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/cocoa.m b/gfx/cocoa.m
index 3df6c62a..aa03f8c2 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