[patch] Fix pr9701

Eli Friedman eli.friedman at gmail.com
Tue Sep 3 16:35:28 PDT 2013


On Tue, Sep 3, 2013 at 9:31 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> The attached patch fixes pr9701. It was marked wontfix, but I could
> not find why.
>
> Requiring -Werror=unknown-warning-option is a fairly annoying behavior
> difference from gcc.
>
> Before this patch:
>
> $ clang -HHH -c test.c; echo $?
> clang: warning: argument unused during compilation: '-HHH'
> 0
>
> with this patch:
>
> $ clang -HHH -c test.c; echo $?
> clang-3.4: error: unknown argument: '-HHH'
> 1
>
> Does this affect -funknown-to-clang-option?  -Wunknown-to-clang-option?
 Any other potentially interesting cases?  The testcase is a bit lacking.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130903/307dd13b/attachment.html>


More information about the cfe-commits mailing list