diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2011-11-17 08:06:31 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2011-11-17 08:06:31 -0500 |
commit | cc1fb7bcac2924674763d917f66d84fbadb11623 (patch) | |
tree | 4be6fb6742157246e9fdda0c9ca86947ec5c3268 /indra/test | |
parent | 4bcdcd02fb7e83a2754084f2fb599b56ea6c8743 (diff) |
LLSD-14: Bring over llsd.{h,cpp} enhancements from server-trunk.
Because new enum values have been added to the LLSD type field, a few external
switch statements must be adjusted to suppress fatal warnings, even though we
never expect to encounter an LLSD instance containing any of the new values.
Diffstat (limited to 'indra/test')
-rw-r--r-- | indra/test/lltut.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/test/lltut.cpp b/indra/test/lltut.cpp index da7031b52a..c43a8f0c7d 100644 --- a/indra/test/lltut.cpp +++ b/indra/test/lltut.cpp @@ -34,6 +34,7 @@ #include "llformat.h" #include "llsd.h" #include "lluri.h" +#include "stringize.h" namespace tut { @@ -144,6 +145,10 @@ namespace tut } return; } + default: + // should never get here, but compiler produces warning if we + // don't cover this case, and at Linden warnings are fatal. + throw failure(STRINGIZE("invalid type field " << actual.type())); } } |