Module Name: src
Committed By: joerg
Date: Thu Jan 23 13:41:58 UTC 2014
Modified Files:
src/external/bsd/openpam/dist/lib: openpam_log.c
Log Message:
Apply diagnostic overwrite for clang too.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/openpam/dist/lib/openpam_log.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/openpam/dist/lib/openpam_log.c
diff -u src/external/bsd/openpam/dist/lib/openpam_log.c:1.7 src/external/bsd/openpam/dist/lib/openpam_log.c:1.8
--- src/external/bsd/openpam/dist/lib/openpam_log.c:1.7 Mon Jan 20 01:15:03 2014
+++ src/external/bsd/openpam/dist/lib/openpam_log.c Thu Jan 23 13:41:58 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: openpam_log.c,v 1.7 2014/01/20 01:15:03 christos Exp $ */
+/* $NetBSD: openpam_log.c,v 1.8 2014/01/23 13:41:58 joerg Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@@ -96,7 +96,7 @@ openpam_log(int level, const char *fmt,
#else
-#if __GNUC_PREREQ__(4, 5)
+#if defined(__clang__) || __GNUC_PREREQ__(4, 5)
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#endif
void