• 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
printing NSUInteger in iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing NSUInteger in iOS


  • Subject: printing NSUInteger in iOS
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 18 Nov 2013 03:34:08 +0700

Xcode 5.0.2 compiles this for OS X without warnings ( NS_BUILD_32_LIKE_64=1):

NSUInteger abc = 23;
NSLog(@"%s abc %lu",__FUNCTION__, abc);

But in an iOS app it tells me "Values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead".

How to get rid of this warning (which makes no sense for NS_BUILD_32_LIKE_64=1)?
(Without casting each NSUInteger to 'unsigned long')

Gerriet.
 _______________________________________________
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: printing NSUInteger in iOS
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Xc5: Testing on a Jenkins slave
  • Next by Date: Re: printing NSUInteger in iOS
  • Previous by thread: Re: Xc5: Testing on a Jenkins slave
  • Next by thread: Re: printing NSUInteger in iOS
  • Index(es):
    • Date
    • Thread