sys/conf/lint.mk: fix order of command line options
The option -o must come before the first filename. Now it is possible to lint kern_exec.c at least. The next failure is in netbsd32_machdep.c: netbsd32_machdep.c(395): error: illegal bit-field size: 255 [36] That line in netbsd32_process_read_fpregs reads: __CTASSERT(sizeof(*regs) == sizeof(struct save87)); This is probably a bug in lint. The struct save87 contains 3 uint16_t, followed by a union containing a uint64_t, followed by a packed struct with size 10. The combination of packed and padding is suspicious.
This commit is contained in:
parent
0286d007d2
commit
f0bd455f32
@ -1,4 +1,4 @@
|
||||
# $NetBSD: lint.mk,v 1.3 2021/05/02 19:51:57 rillig Exp $
|
||||
# $NetBSD: lint.mk,v 1.4 2021/05/02 20:11:43 rillig Exp $
|
||||
|
||||
##
|
||||
## lint
|
||||
@ -9,7 +9,7 @@
|
||||
ALLSFILES?= ${MD_SFILES} ${SFILES}
|
||||
LINTSTUBS?= ${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g}
|
||||
KERNLINTFLAGS?= -bceghnxzFS
|
||||
NORMAL_LN?= ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i $< -o $@
|
||||
NORMAL_LN?= ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} -o $@ -i $<
|
||||
|
||||
_lsrc=${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
|
||||
LOBJS?= ${_lsrc:T:S/.c$/.ln/g} ${LIBKERNLN} ${SYSLIBCOMPATLN}
|
||||
|
Loading…
Reference in New Issue
Block a user