From 3d5bb381be16f67e4781c395bda2be12a5d00168 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Mon, 3 Jun 2013 10:14:52 +0800 Subject: [PATCH] variable_watch: Add missing string enumeration entry (#14188) In commit 9a5b4eba (All variable accesses should produce watch callbacks, 2007-05-17) we added a new enumeration value but did not update the list of strings matching them. Add the missing entry. Without this, variable_watch prints REMOVED_ACCESS instead of MODIFIED_ACCESS when set the value of the variable. --- Source/cmVariableWatch.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmVariableWatch.cxx b/Source/cmVariableWatch.cxx index f5fdca465..3905e9bda 100644 --- a/Source/cmVariableWatch.cxx +++ b/Source/cmVariableWatch.cxx @@ -15,6 +15,7 @@ static const char* const cmVariableWatchAccessStrings[] = { "READ_ACCESS", "UNKNOWN_READ_ACCESS", + "UNKNOWN_DEFINED_ACCESS", "ALLOWED_UNKNOWN_READ_ACCESS", "MODIFIED_ACCESS", "REMOVED_ACCESS",