Permalink
Browse files

add warnings flags to the compile line, and clean up one warning that…

… generates
  • Loading branch information...
mikeash committed Jul 7, 2011
1 parent bbb482d commit fb1ae2d3a017a9b65ef7a3a611dda8284d3f06a8
Showing with 3 additions and 1 deletion.
  1. +3 −1 main.m
View
4 main.m
@@ -1,4 +1,4 @@
-// gcc -framework Foundation main.m MANotificationCenter.m
+// gcc -W -Wall -Wno-unused-parameter -framework Foundation main.m MANotificationCenter.m
#import "MANotificationCenter.h"
@@ -64,5 +64,7 @@ int main(int argc, char **argv)
for(id obj in removalObjs)
[center removeObserver: obj];
[center postNotification: [NSNotification notificationWithName: @"name" object: obj]];
+
+ return 0;
}

0 comments on commit fb1ae2d

Please sign in to comment.