clang warnings
Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=)
kazu at iij.ad.jp
Fri Jun 20 05:10:07 UTC 2014
Hi,
I don't know whether or not this is new but it's worth sharing.
> To test the coming GHC 7.8.3, I started to use the latest ghc-7.8
> branch. Unfortunately, on my Mac, I saw many warnings which are not
> displayed with GHC 7.8.2:
>
> clang: warning: argument unused during compilation: '-fno-stack-protector'
> clang: warning: argument unused during compilation: '-D TABLES_NEXT_TO_CODE'
> clang: warning: argument unused during compilation: '-I test'
> clang: warning: argument unused during compilation: '-I dist/build/spec/spec-tmp'
> clang: warning: argument unused during compilation: '-I dist/build/spec/spec-tmp'
> clang: warning: argument unused during compilation: '-I dist/build/autogen'
> clang: warning: argument unused during compilation: '-I dist/build/spec/spec-tmp'
>
> Is this a known issue?
This is due to clang of Xcode 5.1. I found that the
"-Qunused-arguments" option of clang disables these warnings.
I think that "ghc-clang-wrapper" should include this option.
--Kazu
More information about the ghc-devs
mailing list