build: set -Werror when checking whether a -W<warning> option works
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 29 Sep 2015 11:54:21 +0000 (13:54 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Tue, 29 Sep 2015 12:08:14 +0000 (14:08 +0200)
commitb38bc1574788aae6bbce125d12e0710dd94cbe4a
tree91ef4ec78917fe55b2ad0a5f7254ecf2f184908c
parentedec77fba46e3e6cff8631a0796317ab765543da
build: set -Werror when checking whether a -W<warning> option works

Otherwise the check is effectively a no-op and unknown options still get
turned on. This results in unknown warnings when build without
--with-extra-warnings=error:

  warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
m4/compiler_warnings.m4