• 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
clang vs -Wunreachable-code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clang vs -Wunreachable-code


  • Subject: clang vs -Wunreachable-code
  • From: David Dunham <email@hidden>
  • Date: Thu, 03 Sep 2009 21:25:13 -0700

When I switched to clang, each file gives me

warning: unknown warning option: -Wunreachable-code

I can't figure out where this is coming from. It's obviously there in the transcript, but I can't find anything in Project Info for either compiler front end.

CompileC /Users/david/Library/Caches/build/Theobroma.build/Debug/ SpotlightImporter.build/Objects-normal/i386/ NSKeyedUnarchiver_Extensions.o NSKeyedUnarchiver_Extensions.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/david/software/Raven/Theobroma
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 - pipe -fdiagnostics-print-source-range-info -Wno-trigraphs -fpascal- strings -O0 -Wreturn-type -Wmissing-braces -Wunused-function -Wunused- parameter -Wunused-variable -Wunused-value -Wnewline-eof -isysroot / Developer/SDKs/MacOSX10.5.sdk -fasm-blocks -mfix-and-continue -mmacosx- version-min=10.4 -gdwarf-2 -I/Users/david/Library/Caches/build/ Theobroma.build/Debug/SpotlightImporter.build/Opal.hmap -Wall - Wunreachable-code -Wmost -F/Users/david/software/Raven/Theobroma/build/ Debug -I/Users/david/software/Raven/Theobroma/build/Debug/include -I/ Users/david/Library/Caches/build/Theobroma.build/Debug/ SpotlightImporter.build/DerivedSources/i386 -I/Users/david/Library/ Caches/build/Theobroma.build/Debug/SpotlightImporter.build/ DerivedSources -DPLUGIN -DDEBUG -DSPOTLIGHT_IMPORTER -c /Users/david/ software/Raven/Theobroma/NSKeyedUnarchiver_Extensions.m -o /Users/ david/Library/Caches/build/Theobroma.build/Debug/ SpotlightImporter.build/Objects-normal/i386/ NSKeyedUnarchiver_Extensions.o


I'd like to try clang, but not with a warning per file...

David Dunham
Mobile: +1 206 769 2227             http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein

_______________________________________________
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: clang vs -Wunreachable-code
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Xcode 2.5 vs. 3.2 (was: Re: Any hope to get an updated Xcode IDE for Leopard?)
  • Next by Date: How can I add a new Executable in my XCode project?
  • Previous by thread: Re: libxml2 in Xcode 3.2
  • Next by thread: Re: clang vs -Wunreachable-code
  • Index(es):
    • Date
    • Thread