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

Remove trailing semicolons between method parameters and body #1973

Merged
merged 1 commit into from
Mar 26, 2021

Commits on Mar 11, 2021

  1. Remove trailing semicolons between method parameters and body

    Having a semi-colon between a method parameters list and a method
    body is not not correct and is usually caused by a copy and paste
    error while creating the method definition from its declaration.
    
    Fixes the following compilation warnings when building with
    -Wsemicolon-before-method-body (which is part of -Wextra):
    
      ASPINRemoteImageDownloader.mm:230:85: error: semicolon before method body is ignored [-Werror,-Wsemicolon-before-method-body]
      - (id <ASImageContainerProtocol>)synchronouslyFetchedCachedImageWithURL:(NSURL *)URL;
                                                                                          ^
      ASPINRemoteImageDownloader.mm:275:76: error: semicolon before method body is ignored [-Werror,-Wsemicolon-before-method-body]
                               completion:(ASImageDownloaderCompletion)completion;
                                                                                 ^
      2 errors generated.
    
    Fixes applied to both code, examples and samples in documentation.
    sdefresne committed Mar 11, 2021
    Configuration menu
    Copy the full SHA
    2a65b90 View commit details
    Browse the repository at this point in the history