Source

macports / aqua / emacs-app / files / patch-clang.diff

--- src/nsfont.m~	2011-10-05 22:55:46.000000000 +0900
+++ src/nsfont.m	2011-10-05 23:03:53.000000000 +0900
@@ -1286,7 +1286,7 @@
       }
 
     CGContextRestoreGState (gcontext);
-    return;
+    return 0;
   }
 #endif  /* NS_IMPL_COCOA */
 
--- src/nsimage.m~	2011-01-09 02:45:14.000000000 +0900
+++ src/nsimage.m	2011-10-05 23:14:17.000000000 +0900
@@ -325,7 +325,7 @@
 
 /* Set color for a bitmap image (see initFromSkipXBM).  Note that the alpha
    is used as a mask, so we just memset the entire array. */
-- setXBMColor: (NSColor *)color
+- (void) setXBMColor: (NSColor *)color
 {
   NSSize s = [self size];
   int len = (int) s.width * s.height;
--- src/nsterm.m~	2011-10-05 22:55:46.000000000 +0900
+++ src/nsterm.m	2011-10-05 22:59:43.000000000 +0900
@@ -5494,7 +5494,7 @@
   NSTRACE (performDragOperation);
 
   if (!emacs_event)
-    return;
+    return NO;
 
   position = [self convertPoint: [sender draggingLocation] fromView: nil];
   x = lrint (position.x);  y = lrint (position.y);