This is an archive of the discontinued LLVM Phabricator instance.

Avoid g++ warning spam
Needs RevisionPublic

Authored by chrivers on Nov 13 2018, 5:01 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

chrivers created this revision.Nov 13 2018, 5:01 AM
lebedev.ri added a subscriber: lebedev.ri.

+1, it's super noisy.

rnk requested changes to this revision.Nov 13 2018, 9:59 AM

Adding -Wno-cast-function-type seems reasonable, but we should do it more carefully.

cmake/modules/HandleLLVMOptions.cmake
583–586

You should put this here and follow this pattern instead to avoid setting the -Wno- flag on old versions of GCC that don't support it. GCC normally does not warn about unrecognized -Wno- flags unless it emits a warning, in which case it warns about all the unrecognized -Wno- flags. That's less than ideal.

This revision now requires changes to proceed.Nov 13 2018, 9:59 AM