[PATCH] D98224: [cmake] Enable -Werror=return-type

Dave Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 10 14:50:13 PST 2021


kastiglione added a comment.

Reverted because some versions of gcc can emit `Return-type` warnings on functions that have exhaustive switches over enums. A fix is to use `llvm_unreachable` but that's not currently done everywhere (and also seems like a poor/unnecessary practice).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98224



More information about the llvm-commits mailing list