NetBSD-Bugs archive

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

lib/45989: lint does not use -w on anything != i386 for libc

>Number:         45989
>Category:       lib
>Synopsis:       libc lint invocation does include -w only on i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 01:30:01 +0000 2012
>Originator:     Martin Husemann
>Release:        NetBSD 5.99.60
The NetBSD Foundation, Inc.
System: NetBSD 5.99.60 NetBSD 5.99.60 (NIGHT-OWL) #50: 
Sat Jan 28 11:49:36 CET 2012
Architecture: x86_64
Machine: amd64

The src/lib/libc/ has the following gem:

.if ${MACHINE_ARCH} == "i386"
# Set lint to exit on warnings
LINTFLAGS+=     -w

Since most people do not develop on i386 machines any more, this may lead
to missed warnings from lint that later break the build post commit (like
recently with the posix_spawn addition).

We should aim for libc being lintclean on all archs, but as a stopgap, at
least amd64 should be added to the list.

code inspection (or watch the autmatic test environment catch you breaking
the build).

Remove the .if, fix the fallout.

Home | Main Index | Thread Index | Old Index