[PATCH] D109359: [TableGen] Emit a warning for unused template args

Geoffrey Martin-Noble via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 10:04:03 PDT 2021


GMNGeoffrey added a comment.

I'm seeing warnings from this in my downstream project. The template argument is currently unused because there's a TODO to add additional restrictions based on it https://github.com/google/iree/blob/f06c804f9ec79e16da7dcee1af81afd7b95a8bb1/iree/compiler/Dialect/Util/IR/UtilBase.td#L186. I don't see in the thread that there was any conclusion for how to suppress this warning. The argument that it's optional doesn't really apply anymore, since it's on by default. Do we have a way to do the equivalent of casting to void to suppress this warning locally?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109359/new/

https://reviews.llvm.org/D109359



More information about the llvm-commits mailing list