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

Fix compile errors #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix compile errors #49

wants to merge 1 commit into from

Conversation

maxsz
Copy link

@maxsz maxsz commented Mar 12, 2013

The compiler fails to understand the typeof (self) syntax:

FPPopover/FPPopoverController.m:124:17: warning: type specifier missing,
defaults to 'int' [-Wimplicit-int]
__block typeof (self) bself = self;
~~~~~~~ ^
FPPopover/FPPopoverController.m:124:25:
error: a parameter list without types is only allowed in a function definition
__block typeof (self) bself = self;
^
FPPopover/FPPopoverController.m:124:30:
error: expected ';' at end of declaration
__block typeof (self) bself = self;

I fixed this by following the advice found at
http://stackoverflow.com/a/10921206/1147607

The compiler fails to understand the typeof (self) syntax:

FPPopover/FPPopoverController.m:124:17: warning: type specifier missing,
defaults to 'int' [-Wimplicit-int]
        __block typeof (self) bself = self;
        ~~~~~~~ ^
FPPopover/FPPopoverController.m:124:25:
error: a parameter list without types is only allowed in a function definition
        __block typeof (self) bself = self;
                        ^
FPPopover/FPPopoverController.m:124:30:
error: expected ';' at end of declaration
        __block typeof (self) bself = self;

I fixed this by following the advice found at
http://stackoverflow.com/a/10921206/1147607
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

Successfully merging this pull request may close these issues.

1 participant