diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-03 11:58:13 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-03 11:58:13 +0000 |
commit | 743eb46fb998aa6deaaa2569b9ff84726ed286fe (patch) | |
tree | a63ee56f76c628e0a214a67a534512385eeea51f | |
parent | 2618b3e95d753aea41a970219bee94cf006ec1f9 (diff) |
gcc -Wall -Werror
-rw-r--r-- | makefile | 4 | ||||
-rw-r--r-- | uicache.mm | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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"]; |