summaryrefslogtreecommitdiffstats
path: root/third_party/scons/scons-local/SCons/Warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/scons/scons-local/SCons/Warnings.py')
-rw-r--r--third_party/scons/scons-local/SCons/Warnings.py28
1 files changed, 23 insertions, 5 deletions
diff --git a/third_party/scons/scons-local/SCons/Warnings.py b/third_party/scons/scons-local/SCons/Warnings.py
index 296d6d3..86819cfd 100644
--- a/third_party/scons/scons-local/SCons/Warnings.py
+++ b/third_party/scons/scons-local/SCons/Warnings.py
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation
+# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
@@ -27,7 +27,7 @@ This file implements the warnings framework for SCons.
"""
-__revision__ = "src/engine/SCons/Warnings.py 3842 2008/12/20 22:59:52 scons"
+__revision__ = "src/engine/SCons/Warnings.py 3897 2009/01/13 06:45:54 scons"
import string
import sys
@@ -37,6 +37,21 @@ import SCons.Errors
class Warning(SCons.Errors.UserError):
pass
+class MandatoryWarning(Warning):
+ pass
+
+
+
+class FutureDeprecatedWarning(Warning):
+ pass
+
+class DeprecatedWarning(Warning):
+ pass
+
+class MandatoryDeprecatedWarning(MandatoryWarning):
+ pass
+
+
# NOTE: If you add a new warning class, add it to the man page, too!
@@ -49,9 +64,6 @@ class CorruptSConsignWarning(Warning):
class DependencyWarning(Warning):
pass
-class DeprecatedWarning(Warning):
- pass
-
class DeprecatedCopyWarning(DeprecatedWarning):
pass
@@ -100,6 +112,9 @@ class ReservedVariableWarning(Warning):
class StackSizeWarning(Warning):
pass
+class TaskmasterNeedsExecuteWarning(FutureDeprecatedWarning):
+ pass
+
class FortranCxxMixWarning(LinkWarning):
pass
@@ -189,5 +204,8 @@ def process_warn_strings(arguments):
else:
if enable:
enableWarningClass(clazz)
+ elif issubclass(clazz, MandatoryDeprecatedWarning):
+ fmt = "Can not disable mandataory warning: '%s'\n"
+ sys.stderr.write(fmt % arg)
else:
suppressWarningClass(clazz)