clang: warning: argument unused during compilation: '-MMD'


(Dave Abrahams) #1

I'm seeing this warning a lot recently. Can we

a) drop that argument
b) add -Wno-unused-variable to the clang command line, or
c) is there a better fix?

···

--
Dave


(Ted Kremenek) #2

-Wno-unused-variable would drop warnings about variables in *code* that are not used. This is about a driver option that is not being used. We should just not pass that driver option. I don't recall offhand what it does (or intends to).

···

On Jul 29, 2016, at 11:32 AM, Dave Abrahams via swift-dev <swift-dev@swift.org> wrote:

I'm seeing this warning a lot recently. Can we

a) drop that argument
b) add -Wno-unused-variable to the clang command line, or
c) is there a better fix?

--
Dave

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


(Jacob Bandes-Storch) #3

-MMD Write a depfile containing user headers

···

On Fri, Jul 29, 2016 at 6:14 PM, Ted kremenek via swift-dev < swift-dev@swift.org> wrote:

-Wno-unused-variable would drop warnings about variables in *code* that
are not used. This is about a driver option that is not being used. We
should just not pass that driver option. I don't recall offhand what it
does (or intends to).

> On Jul 29, 2016, at 11:32 AM, Dave Abrahams via swift-dev < > swift-dev@swift.org> wrote:
>
>
> I'm seeing this warning a lot recently. Can we
>
> a) drop that argument
> b) add -Wno-unused-variable to the clang command line, or
> c) is there a better fix?
>
> --
> Dave
>
> _______________________________________________
> swift-dev mailing list
> swift-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev