From 346c3571be944ad9a1823d9582a98d97385f633c Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 4 Apr 2011 11:02:17 +0100 Subject: [PATCH] Irix: Supress some more warnings in kernel builds Suppress the following warnings in kernel builds: *) The function "blah" was declared but never referenced (1174) *) The indicated trailing comma is non-standard (1201) *) The parameter "blah" was never referenced (3201) *) implicit conversion of a 64-bit integral type to a smaller integral type (3968) Reviewed-on: http://gerrit.openafs.org/4419 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Jeffrey Altman (cherry picked from commit 353857e7685c9acfcf7474fabe57c928c70c778f) Change-Id: I4a5b85ffc56a801e19a181f8d2661eba9c975dcc Reviewed-on: http://gerrit.openafs.org/6281 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- src/libafs/MakefileProto.IRIX.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/libafs/MakefileProto.IRIX.in b/src/libafs/MakefileProto.IRIX.in index d28ce02e8..88f7aa92e 100644 --- a/src/libafs/MakefileProto.IRIX.in +++ b/src/libafs/MakefileProto.IRIX.in @@ -36,6 +36,8 @@ AFS_OS_NONFSOBJS = \ # System specific build commands and flags DBUG=-g2 +WSUPPRESS= -woff 1174,1196,1201,1209,1496,3201,3968 + MPS=MP SP @@ -50,7 +52,7 @@ KDEFS=-D_K64U64 -D_KERNEL -DSTATIC=static -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE \ -DTFP -non_shared -elf -xansi -64 -mips4 -TENV:kernel \ -TENV:misalignment=1 -OPT:space \ -D${CPUBOARD} -D${MPSP} -D${CPUARCH} -DAFS_SGIMP_ENV ${NODYNOPT} \ - -jalr -woff 1209,1196,1496 + -jalr ${WSUPPRESS} # Turning off warnings regarding constant conditionals and not prototyped. KDEFS_64BIT= -64 -D_K64U64 -D_PAGESZ=16384 -TENV:kernel -OPT:space \ @@ -66,7 +68,7 @@ KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \ -D_MIPS3_ADDRSPACE -non_shared -elf -xansi \ ${CPU_KDEFS} \ -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \ - -jalr -woff 1209,1196,1496 + -jalr ${WSUPPRESS} R10000_KDEFS = -mips4 -DR10000 -DEXPRESS -DIP28 -DI2_64 -DFAST_LOCORE_FAULT \ -DSCACHE_SET_ASSOC=2 -D_NO_UNCACHED_MEM_WAR -DMIPS4_ISA \ -DR10000_SPECULATION_WAR \ @@ -92,7 +94,7 @@ KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \ -non_shared -elf -xansi \ ${CPU_KDEFS} \ -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \ - -jalr -woff 1209,1196,1496 + -jalr ${WSUPPRESS} R5000_LDFLAGS = -mips2 -o32 R5000_KDEFS = -DCRIME -DIP32 -DCRM -D_K32U64 -xansi -D_PAGESZ=4096 \ -D_KERNEL -DSTATIC=static -DPROBE_WAR -D_VCE_AVOIDANCE -DTILE_DATA \ @@ -120,7 +122,7 @@ KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \ -non_shared -elf -xansi \ ${CPU_KDEFS} \ -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \ - -jalr -woff 1209,1196,1496 + -jalr ${WSUPPRESS} R10000_LDFLAGS = -mips4 -64 R10000_KDEFS = -DKONA -DIP27 -DIP27 -DDISCONTIG_PHYSMEM -DNUMA_BASE -DNUMA_PM \ -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \ @@ -163,7 +165,7 @@ KDEFS= -I/usr/include -I/usr/include/sys -DSTATIC=static -DAFS_SGIMP_ENV \ -TENV:kernel -OPT:space -OPT:Olimit=0 -CG:unique_exit=on \ -TENV:X=1 -OPT:IEEE_arithmetic=1 -OPT:roundoff=0 \ -OPT:wrap_around_unsafe_opt=off \ - -woff 1209,1196,1496 + ${WSUPPRESS} # 32 bit specific flags: KDEFS_32 = -n32 -D_PAGESZ=4096 -mips3 # 64 bit specific flags: -- 2.39.5