clang warnings

Richard Eisenberg eir at cis.upenn.edu
Fri Jun 20 14:28:28 UTC 2014


Would this fix #9047?  Yay!

On Jun 20, 2014, at 1:10 AM, Kazu Yamamoto (山本和彦) <kazu at iij.ad.jp> wrote:

> 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
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs



More information about the ghc-devs mailing list