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

Clang 4.0 compiler complains in -[MPOAuthCredentialConcreteStore signingKey] method #14

Open
nacho4d opened this issue Jun 18, 2012 · 0 comments

Comments

@nacho4d
Copy link

nacho4d commented Jun 18, 2012

I just compiled the library with new Apple's LLVM Clang 4.0 which complains (shows a warning) in -[MPOAuthCredentialConcreteStore signingKey] method:

/MPOAuth/MPOAuthCredentialConcreteStore.m:183:41: warning: invalid conversion specifier '&' [-Wformat-invalid-specifier]
    return [NSString stringWithFormat:@"%@%&%@", consumerSecret, tokenSecret];
                                          ~^
/MPOAuth/MPOAuthCredentialConcreteStore.m:183:43: warning: more '%' conversions than data arguments [-Wformat]
    return [NSString stringWithFormat:@"%@%&%@", consumerSecret, tokenSecret];

Its result string should be simply: return [NSString stringWithFormat:@"%@&%@", ...]. The & character does not need any kind of escaping or special signs before it ;-)

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