Source-Changes-HG archive

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

[src/trunk]: src/lib/libpam/libpam When building with clang, make warnings ab...



details:   https://anonhg.NetBSD.org/src/rev/4b3768a0988a
branches:  trunk
changeset: 333247:4b3768a0988a
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Oct 25 00:57:59 2014 +0000

description:
When building with clang, make warnings about NULL checks of parameters
with attribute nonnull non-fatal.

diffstat:

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

diffs (18 lines):

diff -r bbaf909c7750 -r 4b3768a0988a lib/libpam/libpam/Makefile
--- a/lib/libpam/libpam/Makefile        Fri Oct 24 22:42:40 2014 +0000
+++ b/lib/libpam/libpam/Makefile        Sat Oct 25 00:57:59 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2014/10/24 18:27:41 christos Exp $
+# $NetBSD: Makefile,v 1.18 2014/10/25 00:57:59 joerg Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -205,6 +205,8 @@
        ${CC} ${LDFLAGS} -nostdlib -o ${.TARGET} -r -Wl,--whole-archive \
            openpam_static.o ${STATIC_MODULE_LIBS}
 
+CWARNFLAGS.clang+=     -Wno-error=tautological-pointer-compare
+
 .include <bsd.lib.mk>
 .PATH.h: ${DIST}/include
 .PATH.c: ${DIST}/lib/libpam



Home | Main Index | Thread Index | Old Index