Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pragmas to quite the compiler, patch #14

Open
wmalloc opened this issue Feb 17, 2012 · 0 comments
Open

Pragmas to quite the compiler, patch #14

wmalloc opened this issue Feb 17, 2012 · 0 comments

Comments

@wmalloc
Copy link

wmalloc commented Feb 17, 2012

diff --git a/UIActionSheet+Blocks.m b/UIActionSheet+Blocks.m
index f155547..6b8c8e5 100644
--- a/UIActionSheet+Blocks.m
+++ b/UIActionSheet+Blocks.m
@@ -69,6 +69,7 @@ static NSString *RI_BUTTON_ASS_KEY = @"com.random-ideas.BUTTONS";

  • (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex
    {
    +#pragma unused(actionSheet)
    if (buttonIndex != -1)
    {
    NSArray *buttonsArray = objc_getAssociatedObject(self, RI_BUTTON_ASS_KEY);
    diff --git a/UIAlertView+Blocks.m b/UIAlertView+Blocks.m
    index 2764467..93522fa 100644
    --- a/UIAlertView+Blocks.m
    +++ b/UIAlertView+Blocks.m
    @@ -60,6 +60,7 @@ static NSString *RI_BUTTON_ASS_KEY = @"com.random-ideas.BUTTONS";
  • (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
    {
    +#pragma unused(alertView)
    NSArray *buttonsArray = objc_getAssociatedObject(self, RI_BUTTON_ASS_KEY);
    RIButtonItem *item = [buttonsArray objectAtIndex:buttonIndex];
    if(item.action)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant