]> git.saurik.com Git - uikittools.git/commitdiff
gcc -Wall -Werror
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 3 Dec 2010 11:58:13 +0000 (11:58 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 3 Dec 2010 11:58:13 +0000 (11:58 +0000)
makefile
uicache.mm

index 54fe85b96a9052826251838a269bc6584b73303c..a9807b63a50ff256ce9b76d306673689674a6e08 100644 (file)
--- a/makefile
+++ b/makefile
@@ -8,11 +8,11 @@ clean:
 .PHONY: all clean package
 
 %: %.mm
-       $${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -framework GraphicsServices -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc -framework SpringBoardServices
+       $${PKG_TARG}-g++ -Wall -Werror -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -framework GraphicsServices -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc -framework SpringBoardServices
        ldid -S $@
 
 %: %.c
-       $${PKG_TARG}-gcc -o $@ $< -framework CoreFoundation
+       $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
        ldid -S $@
 
 package: all
index 839770319c2a92d9e1c5439d47ea07ec7d01c27f..41a8839bcc2f95bc0545bdc0b6bfe293243a05ce 100644 (file)
@@ -64,7 +64,7 @@ int main(int argc, const char *argv[]) {
                     NSString *plist = [path stringByAppendingPathComponent:@"Info.plist"];
 
                     if (NSMutableDictionary *info = [NSMutableDictionary dictionaryWithContentsOfFile:plist]) {
-                        if (NSString *bundle = [info objectForKey:@"CFBundleIdentifier"]) {
+                        if ([info objectForKey:@"CFBundleIdentifier"] != nil) {
                             [bundles addObject:path];
                             [info setObject:path forKey:@"Path"];
                             [info setObject:@"System" forKey:@"ApplicationType"];