summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-07 01:37:18 +0000
committerrillig <rillig@pkgsrc.org>2007-03-07 01:37:18 +0000
commit3b2516229f405955883da08ecb5244273ef0a910 (patch)
tree933f0b719b15cb4a30f390c13b95ee88f1f4d324
parentc9632751d8863a1988cca82e2b736667eb5d7a05 (diff)
downloadpkgsrc-3b2516229f405955883da08ecb5244273ef0a910.tar.gz
Make the #error directive an error with MIPSpro.
-rw-r--r--mk/compiler/mipspro.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk
index eb4b142a5a6..fae9327d0b0 100644
--- a/mk/compiler/mipspro.mk
+++ b/mk/compiler/mipspro.mk
@@ -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 @@ _LANGUAGES.mipspro+= ${LANGUAGES.mipspro:M${_lang_}}
_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