Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libkvm libkvm: suppress lint warnings about extern decla...



details:   https://anonhg.NetBSD.org/src/rev/9fab34b1306b
branches:  trunk
changeset: 374101:9fab34b1306b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 01 09:08:11 2023 +0000

description:
libkvm: suppress lint warnings about extern declarations for now

This should be properly fixed by someone who is familiar with libkvm, as
it affects <sys/cpu_data.h> as well.

diffstat:

 lib/libkvm/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 430703ddf978 -r 9fab34b1306b lib/libkvm/Makefile
--- a/lib/libkvm/Makefile       Sat Apr 01 06:30:19 2023 +0000
+++ b/lib/libkvm/Makefile       Sat Apr 01 09:08:11 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.51 2016/01/24 16:07:48 christos Exp $
+#      $NetBSD: Makefile,v 1.52 2023/04/01 09:08:11 rillig Exp $
 #      from: @(#)Makefile      8.1 (Berkeley) 6/4/93
 
 WARNS= 3
@@ -34,6 +34,8 @@ SRCS+=        kvm_${MACHINE_CPU}.c
 
 .if ${MACHINE_ARCH} == "i386"
 LINTFLAGS+=-w
+LINTFLAGS+=    -X 351          # 'extern' declaration outside header
+LINTFLAGS+=    -X 352          # 'extern' declaration in function body
 SRCS+= kvm_i386pae.c # Hook PAE support in the i386 build
 .endif
 



Home | Main Index | Thread Index | Old Index