Skip to content

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