Steven Chamberlain wrote:
> -Wcast-qual warnings.  Wonder why we're seeing it when it presumably
> doesn't affect upstream's builds.

Upstream toolchain disables the warning here;  our compiler invocation
shows -Wno-cast-qual being added, but the problem is that CFLAGS
(including -Wcast-qual) are somehow being added again after it.

| clang-3.6 -c -O3 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE 
-Ulinux -U__linux__ -D__FreeBSD__=1000 -DHAVE_KERNEL_OPTION_HEADERS -include 
/home/steven/svn/kfreebsd-11-11.0~svn285254/sys/amd64/compile/amd64.config/opt_global.h
 -I. 
-I/home/steven/svn/kfreebsd-11-11.0~svn285254/sys/amd64/compile/amd64.config/../../..
 -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-I/home/steven/svn/kfreebsd-11-11.0~svn285254/sys/amd64/compile/amd64.config 
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv
|  -fstack-protector -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-Wundef -Wno-pointer-sign -Wno-format -Wmissing-include-dirs 
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare 
-Wno-error-empty-body -Wno-error-parentheses-equality 
-Wno-error-unused-function -Wno-error-pointer-sign
|  -Wno-cast-qual
|  -mno-aes -mno-avx -std=iso9899:1999 -std=iso9899:1999 -Qunused-arguments
|  -fstack-protector -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-Wundef -Wno-pointer-sign -Wno-format -Wmissing-include-dirs 
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare 
-Wno-error-empty-body -Wno-error-parentheses-equality 
-Wno-error-unused-function -Wno-error-pointer-sign
|  -Werror
|    -mmmx -msse -msse4 -maes -mpclmul 
/home/steven/svn/kfreebsd-11-11.0~svn285254/sys/modules/aesni/../../crypto/aesni/aesni_ghash.c

Upgrading our freebsd-mk would probably fix this, though I'm curious
how it happens.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org

Attachment: signature.asc
Description: Digital signature

Reply via email to