summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-03 11:58:13 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-03 11:58:13 +0000
commit743eb46fb998aa6deaaa2569b9ff84726ed286fe (patch)
treea63ee56f76c628e0a214a67a534512385eeea51f
parent2618b3e95d753aea41a970219bee94cf006ec1f9 (diff)
gcc -Wall -Werror
-rw-r--r--makefile4
-rw-r--r--uicache.mm2
2 files changed, 3 insertions, 3 deletions
diff --git a/makefile b/makefile
index 54fe85b..a9807b6 100644
--- 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
diff --git a/uicache.mm b/uicache.mm
index 8397703..41a8839 100644
--- a/uicache.mm
+++ b/uicache.mm
@@ -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"];