• 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
4.5 and NSInteger/NSUInteger Format Specifier Warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

4.5 and NSInteger/NSUInteger Format Specifier Warnings


  • Subject: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • From: Keary Suska <email@hidden>
  • Date: Wed, 03 Oct 2012 11:49:42 -0600

Is anyone else seeing this? I get tons of warnings such as:
	Format specifies type 'long' but the argument has type 'NSUInteger' (aka 'unsigned int')
when using %ld as a format specifier. If, however, I change the format specifier to %d as the warning (and the fix-it) would suggest, it changes the warning to:
	Format specifies type 'int' but the argument has type 'long'

Augh!

Casting the value seems to work, but there are  a hundred and fifty of them. Is there perhaps a build setting I need to change?

TIA,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


 _______________________________________________
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: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
      • From: Dave Keck <email@hidden>
    • Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
      • From: Thomas Clement <email@hidden>
    • Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
      • From: Tom Seddon <email@hidden>
  • Prev by Date: Re: Xcode's default project layout causes $SRCROOT to be wrong.
  • Next by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Previous by thread: Re: Source trees and other drives?
  • Next by thread: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Index(es):
    • Date
    • Thread