This is already present in sys/conf/kern.mk and can be used to selectively disable -Wunused-but-set-variable.