[all-commits] [llvm/llvm-project] ca6d58: [clang] Do not warn unused -enable-trivial-auto-va...

Yi Kong via All-commits all-commits at lists.llvm.org
Thu Aug 19 09:38:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca6d5813d17598cd180995fb3bdfca00f364475f
      https://github.com/llvm/llvm-project/commit/ca6d5813d17598cd180995fb3bdfca00f364475f
  Author: Yi Kong <yikong at google.com>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td

  Log Message:
  -----------
  [clang] Do not warn unused -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang

Android enables zero initialisation globally by default, but also allows
subprojects to override with different option. Clang complains the above
flag being unused in this case.

Instead of adding a 75 char long -no-* flag, don't warn unused argument
for this flag.

Differential Revision: https://reviews.llvm.org/D108278




More information about the All-commits mailing list