pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Make the #error directive an error with MI...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7ec072ab4e84
branches: trunk
changeset: 526289:7ec072ab4e84
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Mar 07 01:37:18 2007 +0000
description:
Make the #error directive an error with MIPSpro.
diffstat:
mk/compiler/mipspro.mk | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 3da05fc889b2 -r 7ec072ab4e84 mk/compiler/mipspro.mk
--- a/mk/compiler/mipspro.mk Wed Mar 07 01:27:27 2007 +0000
+++ b/mk/compiler/mipspro.mk Wed Mar 07 01:37:18 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.37 2006/12/15 12:46:24 martti Exp $
+# $NetBSD: mipspro.mk,v 1.38 2007/03/07 01:37:18 rillig Exp $
#
# This is the compiler definition for the MIPSpro C compiler.
#
@@ -75,6 +75,11 @@
_WRAP_EXTRA_ARGS.CC+= -c99
.endif
+# Normally, the #error directive only results in a warning (which is
+# explicitly allowed in ISO C99), but we want it to be an error.
+_WRAP_EXTRA_ARGS.CC+= -diag_error 1035
+_WRAP_EXTRA_ARGS.CXX+= -diag_error 1035
+
# Prepend the path to the compiler to the PATH.
.if !empty(_LANGUAGES.mipspro)
PREPEND_PATH+= ${_MIPSPRO_DIR}/bin
Home |
Main Index |
Thread Index |
Old Index