Created attachment 597080 [details] [diff] [review] Pass -Wno-return-type-c-linkage to clang I am normally in favour of fixing warnings by changing the code or changing the compiler, but clang's return-type-c-linkage is the complete oposite of what we do with jsval, so it is probably better to just disable it.
I ran into this today on Linux using a build pulled after r150418. Looks like an unwanted change to build/macosx/common snuck into the patch up for review.
Created attachment 597521 [details] [diff] [review] Pass -Wno-return-type-c-linkage to clang now without the bits in build/macosx/common.
6 years ago
This change causes Xcode 4.0.2 (Mac OS X 10.6) to print many warning: unknown warning option '-Wno-return-type-c-linkage' [-Wunknown-warning-option] ireid% clang --version Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix
(In reply to Irving Reid (:irving) from comment #5) > This change causes Xcode 4.0.2 (Mac OS X 10.6) to print many > > warning: unknown warning option '-Wno-return-type-c-linkage' > [-Wunknown-warning-option] That's because Clang added the new warning only a few weeks ago in the not-yet-released 3.1 release. Perhaps we could add -Wno-unknown-warning-option to the default Clang compiler flags...