• 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: Warnings About Signedness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings About Signedness


  • Subject: Re: Warnings About Signedness
  • From: Lance Drake <email@hidden>
  • Date: Fri, 8 Jul 2005 15:23:10 -0600

OK - I poked around in the Build settings but saw only 'Pointer Sign Comparison' which did nothing to abate the tide of warnings. Hence the question: How to tell the compiler to, please, not complain about signedness?
My current guess is, a lot of people don't see all these checkboxes for single warnings working because they still have the "-Wmost" flag in their "additional compiler flags". How's about -Wmost in your project?
Markus

Hi Markus,

Thanks very much for that suggestion. After giving it a try, it appeared to not be the root cause. An example of the compile command line is:

...
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/usr/bin/gcc-4.0
-x objective-c
-arch ppc
-pipe
-Wno-trigraphs
-fpascal-strings
-fasm-blocks
-g
-O0
-Wunused-function
-Wunused-variable
-Wunused-value
-Wshadow
-Wno-four-char-constants
-fmessage-length=0
-mtune=G4
-fvisibility=hidden
-I/Volumes/dev/Projects/Test_Project/build_D/Test_Tiger.build/ Development/Test.build/Test.hmap
-Wno-four-char-constants
-Wno-unknown-pragmas
-F/Volumes/dev/Projects/Test_Project/build_D/Development -F/Developer/ SDKs/MacOSX10.4u.sdk/System/Library/PrivateFrameworks
-F/Developer/SDKs/MacOSX10.4.0.sdk/System/Library/Frameworks
-I/Volumes/dev/Projects/Test_Project/build_D/Development/include
-IPrefixFiles
-I/Volumes/dev/Projects/Test_Project/build_D/Test_Tiger.build/ Development/Test.build/DerivedSources
-isysroot /Developer/SDKs/MacOSX10.4u.sdk
-c /Projects/Test_Project/DataRender/DataRender.m
-o /Volumes/dev/Projects/Test_Project/build_D/Test_Tiger.build/ Development/Test.build/Objects-normal/ppc/DataRender.o
...


Then lots more stuff appears along the lines of: /Projects/ Test_Project/../Common/MediaUtils/DataRender.c:315: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness

If I pull out the gcc4 docs, there's probably be found some way to suppress those warnings. I was thinking it might be easy. OK - so, I'll just dig deeper.

Thanks VERY much,

Lance Drake

_______________________________________________
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: Warnings About Signedness
      • From: Markus Hitter <email@hidden>
References: 
 >Warnings About Signedness (From: Lance Drake <email@hidden>)
 >Re: Warnings About Signedness (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: Setting up Cross Project Dependencies
  • Next by Date: Re: Documentation frustrations
  • Previous by thread: Re: Warnings About Signedness
  • Next by thread: Re: Warnings About Signedness
  • Index(es):
    • Date
    • Thread