diff options
| author | 2009-11-12 18:45:53 -0800 | |
|---|---|---|
| committer | 2009-11-13 13:53:39 -0800 | |
| commit | 9db3d07b9620b4269ab33f78604a36327e536ce1 (patch) | |
| tree | 41e294f34b9695187af098cd42167489fb0c8fb0 /tools/aapt/XMLNode.cpp | |
| parent | 6c63ee4fc4acae4bbbbd2a49e0a68206221f0de0 (diff) | |
eclair snapshot
Diffstat (limited to 'tools/aapt/XMLNode.cpp')
| -rw-r--r-- | tools/aapt/XMLNode.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/aapt/XMLNode.cpp b/tools/aapt/XMLNode.cpp index 2a85bc7e8b6d..d4d2a45c2d0f 100644 --- a/tools/aapt/XMLNode.cpp +++ b/tools/aapt/XMLNode.cpp @@ -219,8 +219,13 @@ moveon: } spanStack.pop(); - if (empty) { - fprintf(stderr, "%s:%d: WARNING: empty '%s' span found in text '%s'\n", + /* + * This warning seems to be just an irritation to most people, + * since it is typically introduced by translators who then never + * see the warning. + */ + if (0 && empty) { + fprintf(stderr, "%s:%d: warning: empty '%s' span found in text '%s'\n", fileName, inXml->getLineNumber(), String8(spanTag).string(), String8(*outString).string()); @@ -486,6 +491,7 @@ XMLNode::XMLNode(const String8& filename, const String16& s1, const String16& s2 XMLNode::XMLNode(const String8& filename) : mFilename(filename) { + memset(&mCharsValue, 0, sizeof(mCharsValue)); } XMLNode::type XMLNode::getType() const |