commit | 9dac5ece77ef75ace284a0b3145f06feb099d0f9 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Wed Apr 03 17:44:57 2019 |
committer | Aleksander Morgado <aleksander@gnu.org> | Fri Apr 05 08:02:14 2019 |
tree | d6c6f05b17ae3bc9819d013ae9f1da2bb55dd997 | |
parent | 7f78ef50100f7f125ddcd47a721676d80e86d1fe [diff] |
build: make compiler warning options compatible with clang This patch updates m4/compiler-warnings.m4 as follows to make it more compatible with clang: * clang doesn't support -Wunused-but-set-variable, which can be replaced with -Wunused-variable as the latter covers unused variables with or without an assigned value and is supported by gcc and clang. * -Wno-unused-function is added to let clang ignore unused functions that are auto-generated.