Permalink
Browse files

fix Xcode 9 warnings

  • Loading branch information...
ettore committed Sep 29, 2017
1 parent 65200ed commit 2fb0c77558d83399dcac36684c9fd70caaedd015
Showing with 13 additions and 13 deletions.
  1. +1 −1 CLCGCell.h
  2. +2 −2 CLCGCell.m
  3. +1 −1 clcg_datetime_utils.h
  4. +1 −1 clcg_datetime_utils.m
  5. +1 −1 clcg_device_utils.h
  6. +1 −1 clcg_device_utils.m
  7. +3 −3 clcg_viewport.h
  8. +3 −3 clcg_viewport.m
View
@@ -89,7 +89,7 @@
/*!
Executes block if a tap on the imageView happens.
*/
--(void)addTapActionOnImage:(void(^)())block;
+-(void)addTapActionOnImage:(void(^)(void))block;
/*!
Load an image for the cell that displaying info of particular object(context).
View
@@ -67,7 +67,7 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
@interface CLCGCell ()
-@property(nonatomic,copy) void(^tapActionBlock)();
+@property(nonatomic,copy) void(^tapActionBlock)(void);
@property(nonatomic,retain) CLCGImageView *mainImageView;
@end
@@ -162,7 +162,7 @@ -(UIImageView*)imageView
}
--(void)addTapActionOnImage:(void(^)())block;
+-(void)addTapActionOnImage:(void(^)(void))block;
{
self.tapActionBlock = block;
[_mainImageView clcg_addTarget:self forTapAction:@selector(tapAction:)];
View
@@ -74,7 +74,7 @@ extern "C" {
*/
NSString *clcg_ago_format_minimal(NSDate *d);
- NSTimeInterval clcg_secondsSinceEpoch();
+ NSTimeInterval clcg_secondsSinceEpoch(void);
#ifdef __cplusplus
}
View
@@ -110,7 +110,7 @@ NSInteger clcg_date_year(NSDate *d)
}
-NSTimeInterval clcg_secondsSinceEpoch()
+NSTimeInterval clcg_secondsSinceEpoch(void)
{
// timeIntervalSinceReferenceDate returns seconds since 1/1/2001
// NSTimeIntervalSince1970 = seconds from Epoch and 1/1/2001
View
@@ -98,7 +98,7 @@ extern "C" {
* or "iPhone7,1" (iPhone 6 Plus)
*
*/
- NSString *clcg_device_name();
+ NSString *clcg_device_name(void);
#ifdef __cplusplus
}
View
@@ -178,7 +178,7 @@ BOOL clcg_has_retina(void)
}
-NSString* clcg_device_name()
+NSString* clcg_device_name(void)
{
struct utsname systemInfo;
View
@@ -40,18 +40,18 @@ extern "C" {
/**
* Returns the current device orientation.
*/
- UIInterfaceOrientation clcg_orientation();
+ UIInterfaceOrientation clcg_orientation(void);
/**
* Returns the screen size in the current device orientation.
*/
- CGSize clcg_screensize();
+ CGSize clcg_screensize(void);
/**
* Returns the height of the statusbar considering the current device
* orientation.
*/
- CGFloat clcg_statusbar_h();
+ CGFloat clcg_statusbar_h(void);
#endif
#ifdef __cplusplus
View
@@ -29,7 +29,7 @@
#ifndef CLCG_APP_EXTENSIONS
-CGFloat clcg_statusbar_h()
+CGFloat clcg_statusbar_h(void)
{
const CGSize sz = [[UIApplication sharedApplication] statusBarFrame].size;
@@ -46,13 +46,13 @@ CGFloat clcg_statusbar_h()
}
-UIInterfaceOrientation clcg_orientation()
+UIInterfaceOrientation clcg_orientation(void)
{
return [[UIApplication sharedApplication] statusBarOrientation];
}
-CGSize clcg_screensize()
+CGSize clcg_screensize(void)
{
CGRect bounds = [[UIScreen mainScreen] bounds];

0 comments on commit 2fb0c77

Please sign in to comment.