Skip to content

Instantly share code, notes, and snippets.

@dabing1022
Last active July 21, 2016 07:10
Show Gist options
  • Save dabing1022/3f76a2fbe482be84a13ffbfddf67c722 to your computer and use it in GitHub Desktop.
Save dabing1022/3f76a2fbe482be84a13ffbfddf67c722 to your computer and use it in GitHub Desktop.

Revisions

  1. dabing1022 renamed this gist Jul 21, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Xcode common ignore warnings.m → Xcode 忽略警告.m
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,6 @@
    "-Wimplicit-retain-self"

    "-Wundeclared-selector"
    "-Wundeclared-selector"
    "-Wundeclared-selector"

    `__unused` / `__attribute__((unused))` 忽略没有使用变量属性而引起的警告
  2. dabing1022 revised this gist Jul 4, 2016. 1 changed file with 23 additions and 0 deletions.
    23 changes: 23 additions & 0 deletions Xcode common ignore warnings.m
    Original file line number Diff line number Diff line change
    @@ -3,3 +3,26 @@
    // Start executing the requested task
    [targetForExecution performSelector:methodForExecution withObject:objectForExecution];
    #pragma clang diagnostic pop

    "-Wgnu"

    "-Warc-performSelector-leaks"
    "-Warc-retain-cycles"

    "-Wobjc-interface-ivars"

    "-Wdeprecated-implementations"
    "-Wdeprecated-declarations"

    "-Wunreachable-code"

    "-Wimplicit-atomic-properties"

    "-Wcovered-switch-default"

    "-Wassign-enum"

    "-Wimplicit-retain-self"

    "-Wundeclared-selector"
    "-Wundeclared-selector"
  3. dabing1022 created this gist Jun 14, 2016.
    5 changes: 5 additions & 0 deletions Xcode common ignore warnings.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
    // Start executing the requested task
    [targetForExecution performSelector:methodForExecution withObject:objectForExecution];
    #pragma clang diagnostic pop