From 7afac0fdc82ac0610c53146e66a34a0782ad091b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 24 Dec 2011 13:30:15 +0000 Subject: [PATCH] Make another clang warning, -Wempty-body, non-fatal during kernel builds. All the instances of this warning in our tree are completely harmless. (Most of the empty bodies look to be used simply as reminder for the developer to add something later.) While here, assign to CWARNEXTRA with ?=, so it can be overridden easily, if needed. MFC after: 1 week --- sys/conf/kern.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 54b64fcc2e3a..fddd8669d96b 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -23,7 +23,7 @@ NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow # Several other warnings which might be useful in some cases, but not severe # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually. -CWARNEXTRA+= -Wno-error-tautological-compare +CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body .endif #