• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: get rid of warning "suggest parenthesis around assignment used as truth value"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get rid of warning "suggest parenthesis around assignment used as truth value"


  • Subject: Re: get rid of warning "suggest parenthesis around assignment used as truth value"
  • From: Bob Sabiston <email@hidden>
  • Date: Thu, 20 Nov 2008 09:47:31 -0600


On Nov 20, 2008, at 9:32 AM, Chris Hanson wrote:

On Nov 19, 2008, at 6:26 PM, Bob Sabiston wrote:

Is there any way to make this warning not appear?  Besides turning of all warnings?  Xcode's own template class code generates these warnings.

What project/target/class templates did you use that are generating these warnings without explicitly enabling them?

 -- Chris


What do you mean explicitly enabling them?  

New File -> Cocoa Touch Classes -> UIView subclass .
Creates this .m file:


#import "untitled.h"


@implementation untitled


- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        // Initialization code
    }
    return self;
}


- (void)drawRect:(CGRect)rect {
    // Drawing code
}


- (void)dealloc {
    [super dealloc];
}


@end

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: get rid of warning "suggest parenthesis around assignment used as truth value"
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >get rid of warning "suggest parenthesis around assignment used as truth value" (From: Bob Sabiston <email@hidden>)
 >Re: get rid of warning "suggest parenthesis around assignment used as truth value" (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: get rid of warning "suggest parenthesis around assignment used as truth value"
  • Next by Date: How to use /Developer/MacOSX10.4u.sdk/usr/lib/
  • Previous by thread: Re: get rid of warning "suggest parenthesis around assignment used as truth value"
  • Next by thread: Re: get rid of warning "suggest parenthesis around assignment used as truth value"
  • Index(es):
    • Date
    • Thread