summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Warnings.py')
-rw-r--r--src/engine/SCons/Warnings.py45
1 files changed, 27 insertions, 18 deletions
diff --git a/src/engine/SCons/Warnings.py b/src/engine/SCons/Warnings.py
index b17d863..a260c4a 100644
--- a/src/engine/SCons/Warnings.py
+++ b/src/engine/SCons/Warnings.py
@@ -36,6 +36,8 @@ import SCons.Errors
class Warning(SCons.Errors.UserError):
pass
+class WarningOnByDefault(Warning):
+ pass
# NOTE: If you add a new warning class, add it to the man page, too!
@@ -43,51 +45,51 @@ class Warning(SCons.Errors.UserError):
class CacheWriteErrorWarning(Warning):
pass
-class CorruptSConsignWarning(Warning):
+class CorruptSConsignWarning(WarningOnByDefault):
pass
class DependencyWarning(Warning):
pass
-class DuplicateEnvironmentWarning(Warning):
+class DuplicateEnvironmentWarning(WarningOnByDefault):
pass
-class FutureReservedVariableWarning(Warning):
+class FutureReservedVariableWarning(WarningOnByDefault):
pass
-class LinkWarning(Warning):
+class LinkWarning(WarningOnByDefault):
pass
-class MisleadingKeywordsWarning(Warning):
+class MisleadingKeywordsWarning(WarningOnByDefault):
pass
-class MissingSConscriptWarning(Warning):
+class MissingSConscriptWarning(WarningOnByDefault):
pass
-class NoMD5ModuleWarning(Warning):
+class NoMD5ModuleWarning(WarningOnByDefault):
pass
-class NoMetaclassSupportWarning(Warning):
+class NoMetaclassSupportWarning(WarningOnByDefault):
pass
-class NoObjectCountWarning(Warning):
+class NoObjectCountWarning(WarningOnByDefault):
pass
-class NoParallelSupportWarning(Warning):
+class NoParallelSupportWarning(WarningOnByDefault):
pass
-class ReservedVariableWarning(Warning):
+class ReservedVariableWarning(WarningOnByDefault):
pass
-class StackSizeWarning(Warning):
+class StackSizeWarning(WarningOnByDefault):
pass
-class VisualCMissingWarning(Warning):
+class VisualCMissingWarning(WarningOnByDefault):
pass
# Used when MSVC_VERSION and MSVS_VERSION do not point to the
# same version (MSVS_VERSION is deprecated)
-class VisualVersionMismatch(Warning):
+class VisualVersionMismatch(WarningOnByDefault):
pass
class VisualStudioMissingWarning(Warning):
@@ -109,9 +111,19 @@ class MandatoryDeprecatedWarning(DeprecatedWarning):
pass
+# Special case; base always stays DeprecatedWarning
class PythonVersionWarning(DeprecatedWarning):
pass
+class DeprecatedSourceCodeWarning(FutureDeprecatedWarning):
+ pass
+
+class DeprecatedBuildDirWarning(DeprecatedWarning):
+ pass
+
+class TaskmasterNeedsExecuteWarning(DeprecatedWarning):
+ pass
+
class DeprecatedCopyWarning(MandatoryDeprecatedWarning):
pass
@@ -124,9 +136,6 @@ class DeprecatedSourceSignaturesWarning(MandatoryDeprecatedWarning):
class DeprecatedTargetSignaturesWarning(MandatoryDeprecatedWarning):
pass
-class TaskmasterNeedsExecuteWarning(DeprecatedWarning):
- pass
-
class DeprecatedDebugOptionsWarning(MandatoryDeprecatedWarning):
pass
@@ -153,7 +162,7 @@ def suppressWarningClass(clazz):
_enabled.insert(0, (clazz, 0))
def enableWarningClass(clazz):
- """Enable all warnings that are of type clazz or
+ """Enables all warnings that are of type clazz or
derived from clazz."""
_enabled.insert(0, (clazz, 1))