clang vs -Wunreachable-code
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