Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Static Analyzer warnings for debug-only variable "responseString" #7

Description

@lightbow

When running the static analyzer, two errors show up:

Pods/ChimpKit/ChimpKit3/Helper Objects/CKSubscribeAlertView.m:103:20: Value stored to 'responseString' during its initialization is never read
Pods/ChimpKit/ChimpKit3/Helper Objects/CKAuthViewController.m:243:14: Value stored to 'responseString' during its initialization is never read

Consider moving the NSLog inside the "if (kCKDebug)" in the following code: (same issue in both places)

NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
if (kCKDebug) NSLog(@"Response String: %@", responseString);

Many projects strive to build with zero warnings, including the static analyzer. This should be a quick fix and will make it easier for developers to maintain "zero warning" build policies.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions