I am faced the below error :
format string is not a string literal (potentially insecure) [-Wformat-security]
and my code is :
appDelegate.reportString = [NSString stringWithFormat:queryString];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you don’t seem to want to format the string (ie no parameters to use with the format string) but just copy it, the better call to use is [NSString stringWithString:]
If
queryStringis an immutable string and not anNSMutableString, you don’t need to copy it but can just use;with the same result.