Permalink
Browse files

Fixed compiler warnings

  • Loading branch information...
1 parent c3ad42a commit ccc121bf810992039ae9a90cf70a07bcb57e2347 @myell0w myell0w committed Jun 23, 2011
@@ -92,6 +92,8 @@
// "TimeComponentAbbrMinutes_M" = "%d mins";
+NSString *LocStr(NSString *const key);
+
// Localized string accessor
NSString *LocStr(NSString *const key) {
return [[NSBundle mainBundle] localizedStringForKey:key value:nil table:nil];
@@ -8,19 +8,19 @@
#import <UIKit/UIKit.h>
// Path utilities
-NSString *NSDocumentsFolder();
-NSString *NSLibraryFolder();
-NSString *NSBundleFolder();
+NSString *NSDocumentsFolder(void);
+NSString *NSLibraryFolder(void);
+NSString *NSBundleFolder(void);
@interface NSFileManager (Utilities)
-+ (NSString *) pathForItemNamed: (NSString *) fname inFolder: (NSString *) path;
-+ (NSString *) pathForDocumentNamed: (NSString *) fname;
-+ (NSString *) pathForBundleDocumentNamed: (NSString *) fname;
++ (NSString *)pathForItemNamed:(NSString *)fname inFolder:(NSString *)path;
++ (NSString *)pathForDocumentNamed:(NSString *)fname;
++ (NSString *)pathForBundleDocumentNamed:(NSString *)fname;
-+ (NSArray *) pathsForItemsMatchingExtension: (NSString *) ext inFolder: (NSString *) path;
-+ (NSArray *) pathsForDocumentsMatchingExtension: (NSString *) ext;
-+ (NSArray *) pathsForBundleDocumentsMatchingExtension: (NSString *) ext;
++ (NSArray *)pathsForItemsMatchingExtension:(NSString *)ext inFolder:(NSString *)path;
++ (NSArray *)pathsForDocumentsMatchingExtension:(NSString *)ext;
++ (NSArray *)pathsForBundleDocumentsMatchingExtension:(NSString *)ext;
-+ (NSArray *) filesInFolder: (NSString *) path;
++ (NSArray *)filesInFolder:(NSString *)path;
@end
@@ -7,15 +7,15 @@
#import "NSArray-Utilities.h"
#import "NSFileManager-Utilities.h"
-NSString *NSDocumentsFolder() {
+NSString *NSDocumentsFolder(void) {
return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
}
-NSString *NSLibraryFolder() {
+NSString *NSLibraryFolder(void) {
return [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) firstObject];
}
-NSString *NSBundleFolder() {
+NSString *NSBundleFolder(void) {
return [[NSBundle mainBundle] bundlePath];
}
@@ -11,6 +11,11 @@
#define kDefaultViewPadding 20
+BOOL MTViewIsScrollIndicator(UIView *view);
+BOOL MTViewUseForAutocalculation(UIView *view);
+CGFloat MTGetMaxPosition(UIScrollView *scrollView, BOOL vertical);
+
+
static char excludedKey;
BOOL MTViewIsScrollIndicator(UIView *view) {
View
@@ -146,7 +146,7 @@
*/
-BOOL IsXcodeColorsEnabled();
+BOOL IsXcodeColorsEnabled(void);
NSString* StripXcodeColors(NSString* str,...) __attribute__((format(__NSString__, 1, 2)));// format checking is enabled
NSString* AllowXcodeColors(NSString* str,...) __attribute__((format(__NSString__, 1, 2)));// just returns the same string, it needs for format chacking
View
@@ -16,7 +16,7 @@
void (*__ColorLog_NSLog)(NSString * fmt,...) = NSLog;// to prevent false warning about format string
-BOOL IsXcodeColorsEnabled()
+BOOL IsXcodeColorsEnabled(void)
{
char* xcEnv = getenv("XcodeColors");
return (xcEnv && !strcmp(xcEnv, "YES"));
@@ -7,6 +7,8 @@
#import "IKNetworkActivityManager.h"
+CFStringRef _NetworkUserDescription(const void *value);
+
CFStringRef _NetworkUserDescription(const void *value) {
return (CFStringRef)NSStringFromClass([(id)value class]);
View
@@ -77,4 +77,4 @@ __VA_ARGS__ \
#endif
-BOOL isIPad();
+BOOL isIPad(void);
View
@@ -8,7 +8,7 @@
#import "PSCompatibility.h"
-BOOL isIPad()
+BOOL isIPad(void)
{
IF_3_2_OR_GREATER
(
View
@@ -5,8 +5,8 @@
//
// helper that returns width for current orientation mode
-CGFloat PSAppWidth();
+CGFloat PSAppWidth(void);
// returns name of documents directory
-NSString *MTDocumentsDirectory();
+NSString *MTDocumentsDirectory(void);
View
@@ -7,15 +7,15 @@
#import "PSGlobal.h"
-CGFloat PSAppWidth() {
+CGFloat PSAppWidth(void) {
if (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)) {
return [UIScreen mainScreen].bounds.size.width;
} else {
return [UIScreen mainScreen].bounds.size.height;
}
}
-inline NSString *MTDocumentsDirectory() {
+inline NSString *MTDocumentsDirectory(void) {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
return [paths objectAtIndex:0];
}

0 comments on commit ccc121b

Please sign in to comment.